Skip to content

refactor: migrate rust crates to edition 2024#8338

Closed
seuros wants to merge 1 commit into
Vector35:devfrom
seuros:rust-edition-2024
Closed

refactor: migrate rust crates to edition 2024#8338
seuros wants to merge 1 commit into
Vector35:devfrom
seuros:rust-edition-2024

Conversation

@seuros

@seuros seuros commented Jul 20, 2026

Copy link
Copy Markdown

Run cargo fix --edition on binaryninja and binaryninjacore-sys, bump both manifests to edition 2024

Most of the change were automated by the fix. There is more cosmetic changes possible (like order of the imports), but i reverted those.

Run cargo fix --edition on binaryninja and binaryninjacore-sys, bump
both manifests to edition 2024, and resolve what the tool could not:

- wrap unsafe operations in explicit unsafe blocks (unsafe_op_in_unsafe_fn)
- drop explicit ref binding modifiers in implicitly-borrowing match
  patterns (RFC 3627)
- extend temporary lifetimes with let bindings in type archive callbacks
  and Relocation::info (edition 2024 temporary drop order)
- remove redundant nested unsafe blocks left by the mechanical rewrite
@CLAassistant

CLAassistant commented Jul 20, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@emesare

emesare commented Jul 20, 2026

Copy link
Copy Markdown
Member

Make an issue please with specific instances of UB, or why you need 2024, otherwise we will bump to 2024 ourselves when we get the chance. Thank you.

@emesare emesare closed this Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants