Skip to content

Fail to install cargo-dylint on nightly-2024-02-08-x86_64-unknown-linux-gnu #1744

Description

@lilhammerfun

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 rust-lang/rust#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 rust-lang/rust#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: serde@1.0.209: cargo:rustc-check-cfg requires -Zcheck-cfg flag
warning: serde@1.0.209: cargo:rustc-check-cfg requires -Zcheck-cfg flag
warning: serde@1.0.209: cargo:rustc-check-cfg requires -Zcheck-cfg flag
warning: serde@1.0.209: cargo:rustc-check-cfg requires -Zcheck-cfg flag
warning: serde@1.0.209: cargo:rustc-check-cfg requires -Zcheck-cfg flag
warning: serde@1.0.209: cargo:rustc-check-cfg requires -Zcheck-cfg flag
warning: serde@1.0.209: cargo:rustc-check-cfg requires -Zcheck-cfg flag
warning: serde@1.0.209: cargo:rustc-check-cfg requires -Zcheck-cfg flag
warning: serde@1.0.209: cargo:rustc-check-cfg requires -Zcheck-cfg flag
warning: serde@1.0.209: cargo:rustc-check-cfg requires -Zcheck-cfg flag
warning: serde@1.0.209: cargo:rustc-check-cfg requires -Zcheck-cfg flag
warning: serde@1.0.209: 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:

  1. ubuntu desktop 22.04 lts
  2. rustup run $TOOLCHAIN_VERSION cargo install cargo-dylint dylint-link

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions