Open umanwizard opened 2 years ago
Maybe this lint should be disabled by default until this bug is fixed?
Yes please -- buggy lints are worse than nothing IMO.
This bug still persists one year later. It would be really great if you could disable the lint by default.
Summary
This program triggers
await_holding_lock
, but the lock is not actually held across an await point (it is dropped at the end of its enclosing scope, which is the block in the condition position of thewhile let
loop).Lint Name
No response
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
(no output)
Version
Additional Labels
No response