rustlings icon indicating copy to clipboard operation
rustlings copied to clipboard

rustlings wont compile on replit

Open nerkn opened this issue 2 years ago • 1 comments

I updated rust using cargo update then cargo build

error[E0658]: use of unstable library feature 'renamed_spin_loop'
 --> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/parking_lot_core-0.9.1/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'
  --> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/parking_lot_core-0.9.1/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: failed to compile `rustlings v4.6.0 (/home/runner/rustlings)`, intermediate artifacts can be found at `/home/runner/rustlings/target`

Caused by:
  build failed
 rustc --version
rustc 1.44.0 (49cae5576 2020-06-01)****

nerkn avatar Mar 10 '22 13:03 nerkn

did you edit Cargo.toml file?

sethupavan12 avatar Mar 19 '22 10:03 sethupavan12