Fail to install cargo-dylint on nightly-2024-02-08-x86_64-unknown-linux-gnu
Describe the bug
error[E0658]: #[diagnostic] attribute name space is experimental
--> /home/lilhammer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.209/src/de/mod.rs:537:5
|
537 | diagnostic::on_unimplemented(
| ^^^^^^^^^^
|
= note: see issue #111996 https://github.com/rust-lang/rust/issues/111996 for more information
= help: add #![feature(diagnostic_namespace)] to the crate attributes to enable
= note: this compiler was built on 2024-02-07; consider upgrading it if it is out of date
error[E0658]: #[diagnostic] attribute name space is experimental
--> /home/lilhammer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.209/src/ser/mod.rs:220:5
|
220 | diagnostic::on_unimplemented(
| ^^^^^^^^^^
|
= note: see issue #111996 https://github.com/rust-lang/rust/issues/111996 for more information
= help: add #![feature(diagnostic_namespace)] to the crate attributes to enable
= note: this compiler was built on 2024-02-07; consider upgrading it if it is out of date
For more information about this error, try rustc --explain E0658.
The following warnings were emitted during compilation:
warning: [email protected]: cargo:rustc-check-cfg requires -Zcheck-cfg flag warning: [email protected]: cargo:rustc-check-cfg requires -Zcheck-cfg flag warning: [email protected]: cargo:rustc-check-cfg requires -Zcheck-cfg flag warning: [email protected]: cargo:rustc-check-cfg requires -Zcheck-cfg flag warning: [email protected]: cargo:rustc-check-cfg requires -Zcheck-cfg flag warning: [email protected]: cargo:rustc-check-cfg requires -Zcheck-cfg flag warning: [email protected]: cargo:rustc-check-cfg requires -Zcheck-cfg flag warning: [email protected]: cargo:rustc-check-cfg requires -Zcheck-cfg flag warning: [email protected]: cargo:rustc-check-cfg requires -Zcheck-cfg flag warning: [email protected]: cargo:rustc-check-cfg requires -Zcheck-cfg flag warning: [email protected]: cargo:rustc-check-cfg requires -Zcheck-cfg flag warning: [email protected]: cargo:rustc-check-cfg requires -Zcheck-cfg flag
error: could not compile serde (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile cargo-dylint v3.1.2, intermediate artifacts can be found at /tmp/cargo-installoN5jEK.
To reuse those artifacts with a future compilation, set the environment variable CARGO_TARGET_DIR to that path.
Caused by:
package cargo-util v0.2.14 cannot be built because it requires rustc 1.79 or newer, while the currently active rustc version is 1.78.0-nightly
Try re-running cargo install with --locked
error: failed to compile dylint-link v3.1.2, intermediate artifacts can be found at /tmp/cargo-install0FhYeW.
To reuse those artifacts with a future compilation, set the environment variable CARGO_TARGET_DIR to that path.
Summary Failed to install cargo-dylint, dylint-link (see error(s) above).
error: some crates failed to install
To Reproduce Steps to reproduce the behavior:
- ubuntu desktop 22.04 lts
- rustup run $TOOLCHAIN_VERSION cargo install cargo-dylint dylint-link