False positive for infinite_loop
inside async
block in function
#14000
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
infinite_loop
lint triggers on infinite loops insideasync
blocks inside functions that don't return!
, even if the functions don'tawait
those blocks.Lint Name
infinite_loop
Reproducer
I tried this code:
with this
Cargo.toml
:When I ran
cargo clippy
, I saw this happen:I expected to see this happen: no errors
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: