Skip to content

error[E0658]: use of unstable library feature 'renamed_spin_loop' #160

Open
@MoralCode

Description

@MoralCode

When trying to set up a new machine (a VM) to run knix using the ansible scripts, i ran into the following error:

error[E0658]: use of unstable library feature 'renamed_spin_loop'
 --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/parking_lot_core-0.9.7/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'
  --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/parking_lot_core-0.9.7/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
make[1]: *** [Makefile:26: target/release/TriggersFrontend] Error 101

Searching online led me to this issue on another project that suggested updating rust to 1.54, presumably a version that has integrated this feature into the stable branch. When i tried changing this in build_env.mk it seemed to cause other problems later on, so maybe this is a more complicated fix

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions