significant_drop_tightening
lint doesn't trigger when manually dropping
#13429
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Summary
when manually dropping the lock the lint doesn't recognize, that it could be dropped earlier. it would be nice to lint that as well.
Lint Name
significant_drop_tightening
Reproducer
I tried this code:
I expected to see this happen:
Instead, this happened:
nothing
More info:
if i remove the
drop
clippy correctly complains that it is dropped at the end of the scope and could be dropped earlier.Version
No response
The text was updated successfully, but these errors were encountered: