clippy::never_loop has false positive with break from labeled blocks #10304
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
clippy::never_loop is triggering on a loop with a break to a labeled block. i couldnt seem to get a false positive for nested loops with break statements, so its probably a bug specifically with rfc#2046 (stabalized in 1.65).
Lint Name
never_loop
Reproducer
I tried this code:
playground link
I saw this happen:
This is in spite of this loop looping 10 times when run.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: