False positive on unused_import and dead_code #12418
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
hello! I love clippy, don't know what I'd do without it 😄 but I caught a couple false positives I'd like to share. thanks for taking a look!
reproducer
link to source effected https://github.com/shnewto/edges/blob/7e2566e73a6fd0bafc4756e07293d5264556391d/src/edges.rs#L244-L321
here it is too, notice the
#[allow(dead_code)]
and#[allow(unused_imports)]
version
rustup --version
rustc -Vv
output
clippy output after
cargo clippy --all-features --all-targets
(and just runningcargo clippy
without args)compile errors after taking clippy's suggestion in the mod and running
cargo build --features bevy
compile errors after taking clippy's suggestion in the tests and running
cargo test --features bevy
Again, thanks for taking a look. And thanks for all your incredible work!
Lint Name
unused_imports, dead_code
The text was updated successfully, but these errors were encountered: