-
Notifications
You must be signed in to change notification settings - Fork 214
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
Bump MSRV to 1.59 #347
Bump MSRV to 1.59 #347
Conversation
In PR #309 [1], usage of the `asm` feature was promoted because it is now part of the stable Rust channel. This, however, causes build failures when using any Rust version between 1.49 (the documented minimum version) up to 1.58, because the `asm` feature has only become stable in Rust 1.59 [2]. Bump the documented minimum supported Rust version (MSRV) to 1.59. Also, add a `rust_version` entry to `Cargo.toml` in order to codify the MSRV for `cargo` to pick it up. This leads to a more helpful and more actionable error message, for example: > error: package `parking_lot v0.12.1 ([…])` cannot be built because > it requires rustc 1.59 or newer, while the currently active rustc > version is 1.58.1 [1]: #309 [2]: https://github.com/rust-lang/rust/releases/tag/1.59.0
Even with that PR it is still behind the nightly feature, right? |
It looks like it’s behind the This command line works with stable Rust 1.58.1: cargo build --features arc_lock,owning_ref,nightly,serde,send_guard This one works, too:
But this one fails:
See error message
|
That changed since that PR then. In any case we could say that the MSRV for the hardware-lock-elision feature is 1.59, but keep 1.49 if it is disabled, right? |
We could. However, I don’t know a way to encode that in Cargo.toml (in order to get a useful error message when trying to build with Rust < 1.59). Opened #348 for the alternative. |
The |
@Amanieu I totally agree. (I consider it a major UX issue in Nevertheless, your point still stands. Closing. |
In #309, usage of the
asm
feature was promoted because it is now part of the stable Rust channel.This, however, causes build failures when using any Rust version between 1.49 (the documented minimum version) up to 1.58, because the
asm
feature has only become stable in Rust 1.59.This PR:
bumps the documented minimum supported Rust version (MSRV) to 1.59; and
adds a
rust_version
entry toCargo.toml
in order to codify the MSRV forcargo
to pick it up.This leads to a more helpful and more actionable error message, for example: