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

cargo installs fails to build (unstable feature lazy_cell) #64

Closed
apraga opened this issue Oct 10, 2024 · 2 comments
Closed

cargo installs fails to build (unstable feature lazy_cell) #64

apraga opened this issue Oct 10, 2024 · 2 comments

Comments

@apraga
Copy link

apraga commented Oct 10, 2024

Hi,

cargo install fails with the log below. Usign --locked does not help.
Any idea ?

Thanks,

`error[E0658]: use of unstable library feature 'lazy_cell'
--> /home/alexis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tui_confirm_dialog-0.2.3/src/confirm_dialog.rs:5:5
|
5 | use std::sync::LazyLock;
| ^^^^^^^^^^^^^^^^^^^
|
= note: see issue #109736 rust-lang/rust#109736 for more information

error[E0658]: use of unstable library feature 'lazy_cell'
--> /home/alexis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tui_confirm_dialog-0.2.3/src/confirm_dialog.rs:20:25
|
20 | static BUTTON_LABEL_RE: LazyLock = LazyLock::new(||Regex::new(r#"((\w))"#).unwrap());
| ^^^^^^^^^^^^^^^
|
= note: see issue #109736 rust-lang/rust#109736 for more information

error[E0658]: use of unstable library feature 'lazy_cell'
--> /home/alexis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tui_confirm_dialog-0.2.3/src/confirm_dialog.rs:20:43
|
20 | static BUTTON_LABEL_RE: LazyLock = LazyLock::new(||Regex::new(r#"((\w))"#).unwrap());
| ^^^^^^^^
|
= note: see issue #109736 rust-lang/rust#109736 for more information

error[E0658]: use of unstable library feature 'lazy_cell'
--> /home/alexis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tui_confirm_dialog-0.2.3/src/confirm_dialog.rs:23:17
|
23 | pub const YES: LazyLock = LazyLock::new(|| ButtonLabel {
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #109736 rust-lang/rust#109736 for more information

error[E0658]: use of unstable library feature 'lazy_cell'
--> /home/alexis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tui_confirm_dialog-0.2.3/src/confirm_dialog.rs:23:41
|
23 | pub const YES: LazyLock = LazyLock::new(|| ButtonLabel {
| ^^^^^^^^
|
= note: see issue #109736 rust-lang/rust#109736 for more information

error[E0658]: use of unstable library feature 'lazy_cell'
--> /home/alexis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tui_confirm_dialog-0.2.3/src/confirm_dialog.rs:29:16
|
29 | pub const NO: LazyLock = LazyLock::new(|| ButtonLabel {
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #109736 rust-lang/rust#109736 for more information

error[E0658]: use of unstable library feature 'lazy_cell'
--> /home/alexis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tui_confirm_dialog-0.2.3/src/confirm_dialog.rs:29:40
|
29 | pub const NO: LazyLock = LazyLock::new(|| ButtonLabel {
| ^^^^^^^^
|
= note: see issue #109736 rust-lang/rust#109736 for more information

error[E0658]: use of unstable library feature 'lazy_cell'
--> /home/alexis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tui_confirm_dialog-0.2.3/src/confirm_dialog.rs:20:43
|
20 | static BUTTON_LABEL_RE: LazyLock = LazyLock::new(||Regex::new(r#"((\w))"#).unwrap());
| ^^^^^^^^^^^^^
|
= note: see issue #109736 rust-lang/rust#109736 for more information

error[E0658]: use of unstable library feature 'lazy_cell'
--> /home/alexis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tui_confirm_dialog-0.2.3/src/confirm_dialog.rs:23:41
|
23 | pub const YES: LazyLock = LazyLock::new(|| ButtonLabel {
| ^^^^^^^^^^^^^
|
= note: see issue #109736 rust-lang/rust#109736 for more information

error[E0658]: use of unstable library feature 'lazy_cell'
--> /home/alexis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tui_confirm_dialog-0.2.3/src/confirm_dialog.rs:29:40
|
29 | pub const NO: LazyLock = LazyLock::new(|| ButtonLabel {
| ^^^^^^^^^^^^^
|
= note: see issue #109736 rust-lang/rust#109736 for more information

For more information about this error, try rustc --explain E0658.
error: could not compile tui_confirm_dialog (lib) due to 10 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile lazyjj v0.4.2, intermediate artifacts can be found at /tmp/cargo-installgYPWoO.
To reuse those artifacts with a future compilation, set the environment variable CARGO_TARGET_DIR to that path.w

@Cretezy
Copy link
Owner

Cretezy commented Oct 14, 2024

Which version of Rust are you using? LazyCell was stabilized in 1.80 (https://blog.rust-lang.org/2024/07/25/Rust-1.80.0.html), released July 25th

@apraga
Copy link
Author

apraga commented Oct 14, 2024

It was 1.79. Updating to 1.80 fixed it, thanks !

@apraga apraga closed this as completed Oct 14, 2024
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

2 participants