|
1 |
| -error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop. |
| 1 | +error: variables in the condition are not mutated in the loop body. This may lead to an infinite or to a never running loop |
2 | 2 | --> $DIR/infinite_loop.rs:23:11
|
3 | 3 | |
|
4 | 4 | LL | while y < 10 {
|
5 | 5 | | ^^^^^^
|
6 | 6 | |
|
7 | 7 | = note: `#[deny(clippy::while_immutable_condition)]` on by default
|
8 | 8 |
|
9 |
| -error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop. |
| 9 | +error: variables in the condition are not mutated in the loop body. This may lead to an infinite or to a never running loop |
10 | 10 | --> $DIR/infinite_loop.rs:28:11
|
11 | 11 | |
|
12 | 12 | LL | while y < 10 && x < 3 {
|
13 | 13 | | ^^^^^^^^^^^^^^^
|
14 | 14 |
|
15 |
| -error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop. |
| 15 | +error: variables in the condition are not mutated in the loop body. This may lead to an infinite or to a never running loop |
16 | 16 | --> $DIR/infinite_loop.rs:35:11
|
17 | 17 | |
|
18 | 18 | LL | while !cond {
|
19 | 19 | | ^^^^^
|
20 | 20 |
|
21 |
| -error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop. |
| 21 | +error: variables in the condition are not mutated in the loop body. This may lead to an infinite or to a never running loop |
22 | 22 | --> $DIR/infinite_loop.rs:79:11
|
23 | 23 | |
|
24 | 24 | LL | while i < 3 {
|
25 | 25 | | ^^^^^
|
26 | 26 |
|
27 |
| -error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop. |
| 27 | +error: variables in the condition are not mutated in the loop body. This may lead to an infinite or to a never running loop |
28 | 28 | --> $DIR/infinite_loop.rs:84:11
|
29 | 29 | |
|
30 | 30 | LL | while i < 3 && j > 0 {
|
31 | 31 | | ^^^^^^^^^^^^^^
|
32 | 32 |
|
33 |
| -error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop. |
| 33 | +error: variables in the condition are not mutated in the loop body. This may lead to an infinite or to a never running loop |
34 | 34 | --> $DIR/infinite_loop.rs:88:11
|
35 | 35 | |
|
36 | 36 | LL | while i < 3 {
|
37 | 37 | | ^^^^^
|
38 | 38 |
|
39 |
| -error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop. |
| 39 | +error: variables in the condition are not mutated in the loop body. This may lead to an infinite or to a never running loop |
40 | 40 | --> $DIR/infinite_loop.rs:103:11
|
41 | 41 | |
|
42 | 42 | LL | while i < 3 {
|
43 | 43 | | ^^^^^
|
44 | 44 |
|
45 |
| -error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop. |
| 45 | +error: variables in the condition are not mutated in the loop body. This may lead to an infinite or to a never running loop |
46 | 46 | --> $DIR/infinite_loop.rs:108:11
|
47 | 47 | |
|
48 | 48 | LL | while i < 3 {
|
49 | 49 | | ^^^^^
|
50 | 50 |
|
51 |
| -error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop. |
| 51 | +error: variables in the condition are not mutated in the loop body. This may lead to an infinite or to a never running loop |
52 | 52 | --> $DIR/infinite_loop.rs:174:15
|
53 | 53 | |
|
54 | 54 | LL | while self.count < n {
|
|
0 commit comments