never_loop misses continue
stmt inside let..else
terminator
#9356
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
Seems like the
never_loop
lint ignores anycontinue
statements that are inside theelse
blocks inlet..else
statements. This produces a false positive.Lint Name
never_loop
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
never_loop
should not be triggered.Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: