let_underscore_drop warns even when drop order is not affected #6841
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
S-needs-discussion
Status: Needs further discussion before merging or work can be started
Lint name:
clippy::let_underscore_drop
In this context, the semantics of
_
do not alter drop order (which is the reason the lint exists, I think?) but the lint fires anyway:Meta
cargo clippy -V
: clippy 0.1.52 (476acbf 2021-03-03)rustc -Vv
:The text was updated successfully, but these errors were encountered: