needless_collect
false positive
#7512
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
L-nursery
Lint: Currently in the nursery group
Lint name:
needless_collect
Reduced code:
I expected no warning here because
foo
is dropped. The incorrect suggestion also appears iffoo
is shadowed, potentially generating incorrect code that compiles.Meta
cargo clippy -V
: clippy 0.1.54 (a178d032 2021-07-26)rustc -Vv
:The text was updated successfully, but these errors were encountered: