Open andrewbanchich opened 4 months ago
why is that a warning? shouldn't warning: allow(unused_imports) incompatible with previous forbid be an error since i added a forbid?
It was accidentally allowed entirely. To give existing code a chance to fix the issue we are now emitting a future compatibility warning with the intent to turn it into an error in the future rather than immediately making it an error.
@rustbot label -needs-triage +A-clippy +L-dead_code +A-lint +L-unused_imports
running
cargo clippy -- -Dwarnings -Fdead_code
in my binary produces two errors and no warnings. both errors are coming fromclap
.however, running
cargo clippy -- -Dwarnings -Funused
produces 1158 warnings and no errors. and example of one of the warnings isdead_code
is a subset of theunused
lint group that if-Fdead_code
produced errors that-Funused
should produce at least the same number of errors.warning: allow(unused_imports) incompatible with previous forbid
be an error since i added a forbid?