-
Notifications
You must be signed in to change notification settings - Fork 216
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
build errors: trait bounds other than Sized
on const fn parameters are unstable
#336
Comments
Update to the latest nightly. |
This is a breaking change. You should not release a patch version for such changes. This version requires a very recent version of the nightly that doesn't build many other packages. Some core Rust packages such as racer, rls, rustfmt fail to build with the latest nightly, while this package requires it! |
Racer doesn't depend on parking_lot at all. |
Yes, but rls depends on both Lock_api and racer. Lock_api requires the latest nightly and the others do not build with the latest. https://github.com/rust-lang/rls/blob/d8478d82f59e17c2846e9935025e557c1693dd5a/Cargo.lock#L1183 |
I don't think it is reasonable for parking_lot to support older nightly versions. The whole point of nightly is that it is unstable and you are responsible for keeping up with changes. If you really need it then you can use a nightly with a version number of 1.60, which will fail the check in build.rs. |
I'm not sure if I understand this correctly. I thought that parking_lot and lock_api would work on any nightly version greater than msvr unless I explicitly enable But I ran into this issue having just
in my cargo lock and running Do you think it could be fixed somehow? |
I supposed the |
I tried to compile lock_api and I got these errors:
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: