Skip to content

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

Closed
@DanielCao0

Description

@DanielCao0

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())); ....

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