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

make build-x86_64-unknown-linux-musl error[E0658]: use of unstable library feature 'lazy_cell' #43

Closed
DanielCao0 opened this issue Feb 10, 2025 · 1 comment

Comments

@DanielCao0
Copy link

error[E0658]: use of unstable library feature 'lazy_cell'
--> src/mesh.rs:2:5
|
2 | use std::sync::LazyLock;
| ^^^^^^^^^^^^^^^^^^^
|
= note: see issue #109736 rust-lang/rust#109736 for more information
= help: add #![feature(lazy_cell)] to the crate attributes to enable
= note: this compiler was built on 2024-05-16; consider upgrading it if it is out of date

error[E0658]: use of unstable library feature 'lazy_cell'
--> src/mesh.rs:25:24
|
25 | static UPLINK_CONTEXT: LazyLock<Mutex<HashMap<u16, Vec>>> =
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #109736 rust-lang/rust#109736 for more information
= help: add #![feature(lazy_cell)] to the crate attributes to enable
= note: this compiler was built on 2024-05-16; consider upgrading it if it is out of date

error[E0658]: use of unstable library feature 'lazy_cell'
--> src/mesh.rs:26:5
|
26 | LazyLock::new(|| Mutex::new(HashMap::new())); ....

@DanielCao0
Copy link
Author

Caused by an error due to my environment configuration.
fixed : rustup override set stable

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

1 participant