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

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

Open
lilhammer111 opened this issue Sep 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@lilhammer111
Copy link

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
@lilhammer111 lilhammer111 added the bug Something isn't working label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant