-
Notifications
You must be signed in to change notification settings - Fork 385
Update to edition 2024 #4311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to edition 2024 #4311
Conversation
a0f0a8b
to
47295e8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be easier if you only update Miri itself, not all the test / benchmark crates.
test-cargo-miri/cdylib/src/lib.rs
Outdated
#[no_mangle] | ||
extern "C" fn use_the_dependency() { | ||
#[unsafe(no_mangle)] | ||
unsafe extern "C" fn use_the_dependency() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you make this function unsafe
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair point, it's not required indeed.
@rustbot author |
Reminder, once the PR becomes ready for a review, use |
This looks great, thanks! Please squash the commits using @rustbot author |
Also update the format edition to 2024
@rustbot ready |
Updates everything but the tests to edition 2024, of which a bunch are failing on older editions.
The edition 2024 is a prerequisite for removal of the
#![feature(let_chains)]
, and to forbidding let chains on edition 2021. I will do this in a later PR.rust-lang/rust#140722