mutate_range_bound
on immediately continued outer loop
#13870
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 mutating a variable, that serves as a range bound for an outer loop, but then immediately continuing a loop even further up, a warning of type
mutate_range_bound
is still emitted, even though the affected loop will be exited, similar to using a break.This behavior is similar to that described in the issue #7532
Lint Name
mutate_range_bound
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
No warning should be emitted, as the affected loop is immediately exited by continuing the outer loop.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: