False positive using async-condvar-fair / MutexGuard moved into future that is then awaited #13075
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
When using this library the warning
this MutexGuard is held across an await point
fires, but I don't believe any mutex is held across awaitLint Name
await_holding_lock
Reproducer
I tried this code:
I saw this happen:
I do not expect any warning here because I believe the guard is moved into the future before it is awaited. (The code implementing the future will release the lock, I believe that even if it didn't, that would be a bug in the library and not something for Clippy to warn about here).
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: