You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
running cargo build followed by cargo clippy -- -Wall will result subsequent calls to cargo clippy using the same cached failure message.
Reproducer
$ cd /tmp
$ mkdir bug-repro
$ cd bug-repro/
$ cargo init --lib Creating library packagenote: see more `Cargo.toml` keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
$ cargo build Compiling bug-repro v0.1.0 (/tmp/bug-repro) Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.65s
$ cargo clippy -- -Wallerror: process didn't exit successfully: `/home/binarycat/.rustup/toolchains/nightly-2024-05-30-x86_64-unknown-linux-gnu/bin/clippy-driver /home/binarycat/.rustup/toolchains/nightly-2024-05-30-x86_64-unknown-linux-gnu/bin/rustc -vV` (exit status: 1)--- stdoutThe flag `-Wall` does not exist in `rustc`. Most useful lints are enabled bydefault. Use `rustc -W help` to see all available lints. It's more common to putwarning settings in the crate root using `#![warn(LINT_NAME)]` instead of usingthe command line flag directly.
$ cargo clippy -- -W clippy::all # can be the name of any lint, and the error will be the same as beforeerror: process didn't exit successfully: `/home/binarycat/.rustup/toolchains/nightly-2024-05-30-x86_64-unknown-linux-gnu/bin/clippy-driver /home/binarycat/.rustup/toolchains/nightly-2024-05-30-x86_64-unknown-linux-gnu/bin/rustc -vV` (exit status: 1)--- stdoutThe flag `-Wall` does not exist in `rustc`. Most useful lints are enabled bydefault. Use `rustc -W help` to see all available lints. It's more common to putwarning settings in the crate root using `#![warn(LINT_NAME)]` instead of usingthe command line flag directly.
Summary
running
cargo build
followed bycargo clippy -- -Wall
will result subsequent calls to cargo clippy using the same cached failure message.Reproducer
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: