False-positive await_holding_lock
with manual drop
of MutexGuard
#9683
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
I manually
drop
myMutexGuard
right before theawait
point, therefore the lock is not held across await points.Lint Name
await_holding_lock
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
This should not error as the
MutexGuard
is not alive at theawait
point.Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: