-
Notifications
You must be signed in to change notification settings - Fork 35
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
elsa 1.11.0 fails to compile in older Rust toolchain due to usage of the inline-const feature / update MSRV? #83
Comments
For some extra information, this crate is depended by |
I'm pretty sure the version requirement can be relaxed by defining an explicit intermediate const, if you'd like to make that change and then also add an older MSRV. Otherwise I don't mind MSRV 1.79, but I think we could have one that is at least a year old if we try. |
Sounds good. If the previous version of this crate have no problem with older rust toolchains, I think I can just fix it by introducing an intermediate constant without a MSRV constraint. Working on this. |
Fix #83: Remove Usage of `inline-const` Feature
@Manishearth I don't know the crates.io update process, but is it possible for you to push version 1.11.1 to crates.io? The version that fails to compile is still being pulled in as a dependency. |
Done! |
Thank you! |
Issue Description
Starting from version 1.11.0, this crate fails to compile with older Rust toolchain. This issue can be reproduced simply by running the following script:
Note that the toolchain version can be arbitrary before
"nightly-2024-03-xx"
. A successful compilation is expected, while the actual output is:The
inline_const
feature was stabilized and merged into master in PR rust-lang/rust#76001 in April 24th 2024, and shipped in stable rust in 1.79.0 (See https://releases.rs/docs/1.79.0/), so recent stable and nightly toolchains accept this syntax without complaining or requiring a feature gate. For toolchains before that, this issue occurs, making the 1.11.0 version a breaking change for projects depending on this crate while using an older rust toolchain.This issue does not occur in
elsa
version 1.10.0 and before.Suggested Solution
This issue can be handled simply by adding an MSRV requirement to this crate (
version = "1.79.0"
toCargo.toml
). I can raise a pull request for this change. Other alternatives might be removing all usage of the inline-const feature or bumping the major version, which is not recommended in any way.The text was updated successfully, but these errors were encountered: