Skip to content
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

use of unstable library feature 'renamed_spin_loop' Error. #11

Closed
absenth opened this issue May 25, 2022 · 4 comments
Closed

use of unstable library feature 'renamed_spin_loop' Error. #11

absenth opened this issue May 25, 2022 · 4 comments

Comments

@absenth
Copy link

absenth commented May 25, 2022

I'm running into the following when running cargo build --release

error[E0658]: use of unstable library feature 'renamed_spin_loop'
 --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/parking_lot_core-0.9.3/src/spinwait.rs:9:5
  |
9 | use core::hint::spin_loop;
  |     ^^^^^^^^^^^^^^^^^^^^^
  |
  = note: see issue #55002 <https://github.com/rust-lang/rust/issues/55002> for more information

error[E0658]: use of unstable library feature 'renamed_spin_loop'
  --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/parking_lot_core-0.9.3/src/spinwait.rs:16:9
   |
16 |         spin_loop()
   |         ^^^^^^^^^
   |
   = note: see issue #55002 <https://github.com/rust-lang/rust/issues/55002> for more information

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0658`.
error: could not compile `parking_lot_core`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
```
@mbilker
Copy link
Owner

mbilker commented May 25, 2022

What version of Rust is being used on your setup? This can be seen using rustc -V.

@absenth
Copy link
Author

absenth commented May 25, 2022

rustc 1.48.0

@mbilker
Copy link
Owner

mbilker commented May 25, 2022

Ok, I downgraded the parking_lot dependency to maintain compatibility with Rust 1.48. Please pull the most recent changes are try again.

@mbilker mbilker closed this as completed May 25, 2022
@absenth
Copy link
Author

absenth commented May 25, 2022

Success! Thank you for the quick response and troubleshooting help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants