mbilker / vgpu_unlock-rs

Unlock vGPU functionality for consumer grade GPUs
MIT License
456 stars 53 forks source link

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

Closed absenth closed 2 years ago

absenth commented 2 years ago

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 commented 2 years ago

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

absenth commented 2 years ago

rustc 1.48.0

mbilker commented 2 years ago

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

absenth commented 2 years ago

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