| error: variables in the condition are not mutated in the loop body |
| --> tests/ui/infinite_loop.rs:20:11 |
| | |
| LL | while y < 10 { |
| | ^^^^^^ |
| | |
| = note: this may lead to an infinite or to a never running loop |
| = note: `#[deny(clippy::while_immutable_condition)]` on by default |
| |
| error: variables in the condition are not mutated in the loop body |
| --> tests/ui/infinite_loop.rs:27:11 |
| | |
| LL | while y < 10 && x < 3 { |
| | ^^^^^^^^^^^^^^^ |
| | |
| = note: this may lead to an infinite or to a never running loop |
| |
| error: variables in the condition are not mutated in the loop body |
| --> tests/ui/infinite_loop.rs:36:11 |
| | |
| LL | while !cond { |
| | ^^^^^ |
| | |
| = note: this may lead to an infinite or to a never running loop |
| |
| error: variables in the condition are not mutated in the loop body |
| --> tests/ui/infinite_loop.rs:82:11 |
| | |
| LL | while i < 3 { |
| | ^^^^^ |
| | |
| = note: this may lead to an infinite or to a never running loop |
| |
| error: variables in the condition are not mutated in the loop body |
| --> tests/ui/infinite_loop.rs:89:11 |
| | |
| LL | while i < 3 && j > 0 { |
| | ^^^^^^^^^^^^^^ |
| | |
| = note: this may lead to an infinite or to a never running loop |
| |
| error: variables in the condition are not mutated in the loop body |
| --> tests/ui/infinite_loop.rs:95:11 |
| | |
| LL | while i < 3 { |
| | ^^^^^ |
| | |
| = note: this may lead to an infinite or to a never running loop |
| |
| error: variables in the condition are not mutated in the loop body |
| --> tests/ui/infinite_loop.rs:112:11 |
| | |
| LL | while i < 3 { |
| | ^^^^^ |
| | |
| = note: this may lead to an infinite or to a never running loop |
| |
| error: variables in the condition are not mutated in the loop body |
| --> tests/ui/infinite_loop.rs:119:11 |
| | |
| LL | while i < 3 { |
| | ^^^^^ |
| | |
| = note: this may lead to an infinite or to a never running loop |
| |
| error: variables in the condition are not mutated in the loop body |
| --> tests/ui/infinite_loop.rs:187:15 |
| | |
| LL | while self.count < n { |
| | ^^^^^^^^^^^^^^ |
| | |
| = note: this may lead to an infinite or to a never running loop |
| |
| error: variables in the condition are not mutated in the loop body |
| --> tests/ui/infinite_loop.rs:197:11 |
| | |
| LL | while y < 10 { |
| | ^^^^^^ |
| | |
| = note: this may lead to an infinite or to a never running loop |
| = note: this loop contains `return`s or `break`s |
| = help: rewrite it as `if cond { loop { } }` |
| |
| error: variables in the condition are not mutated in the loop body |
| --> tests/ui/infinite_loop.rs:206:11 |
| | |
| LL | while y < 10 { |
| | ^^^^^^ |
| | |
| = note: this may lead to an infinite or to a never running loop |
| = note: this loop contains `return`s or `break`s |
| = help: rewrite it as `if cond { loop { } }` |
| |
| error: aborting due to 11 previous errors |
| |