-
Notifications
You must be signed in to change notification settings - Fork 237
Use Edition 2024, MSRV 1.85 #749
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
base: master
Are you sure you want to change the base?
Conversation
|
I am in favor of bumping MSRV and releasing v0.4 (see #722) regardless of whether (I will wait for CI to be fixed before approving) |
| matrix: | ||
| os: [ubuntu-24.04, windows-2022] | ||
| toolchain: [nightly, beta, stable, "1.63"] | ||
| toolchain: [nightly, beta, stable, "1.85"] |
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.
Ideally, we should extract MSRV from the rust-version field instead of manually providing it.
|
Releasing v0.4 works for me. Okay, I'll try to get this fixed. |
|
So yesterday CI showed this error: Today after adding This is using nightly rustc. So why does it not think unsafe is necessary here? |
|
Note: |
| #[target_feature(enable = "rdrand")] | ||
| #[cfg_attr(target_os = "uefi", allow(unused_unsafe))] // HACK: Rust lint gives false positive on uefi | ||
| unsafe fn rdrand() -> Option<Word> { | ||
| for _ in 0..RETRY_LIMIT { | ||
| let mut val = 0; | ||
| if rdrand_step(&mut val) == 1 { | ||
| if unsafe { rdrand_step(&mut val) } == 1 { | ||
| return Some(val); | ||
| } | ||
| } |
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.
Got a better idea?
At least allow(unused_unsafe) is fairly harmless.
The MSRV bump is required if we want to make
getrandomdepend onrand_core(see rust-random/rand#1675). Unless we use a split MSRV depending on whetherrand_coreis a dependency.It is however a significant bump, so we might prefer not to.