await_holding_lock
lint is erroneously triggered when the guard is explicitly dropped before the await.
#9208
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
The code below triggers
await_holding_lock
. However, the guards are dropped explicitly before each.await
so there should not be a problem.Lint Name
await_holding_lock
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
We expected no errors because the guards are explicitly dropped before each await point.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: