cargo clippy
fails to run if the -- -A warnings
suffix is provided
#9012
Labels
C-bug
Category: Clippy is not doing the correct thing
Summary
When running the following on the Theseus OS code base
cargo clean && cargo clippy -Z build-std=core,alloc -Z build-std-features=compiler-builtins-mem --target cfg/x86_64-theseus.json --workspace --all-features -- -A warnings
We encounter the following output:
Click to expand the output
Note that when removing the
-- -A warnings
, it works as expected. Funnily enough, it also works with-- -D warnings
. Quite strange.Reproducer
Clone the Theseus repo:
Then run the above command in the new
Theseus
directory:Try removing the
-A warnings
or changing it to-D warnings
, and it works as expected.Version
As we can only build Theseus with nightly Rust, I tried several nightly versions; all 3 resulted in the same failure.
Output from the latest one:
Additional Labels
No response
The text was updated successfully, but these errors were encountered: