|
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 |
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 | + = note: this may lead to an infinite or to a never running loop |
8 | 9 |
|
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. |
| 10 | +error: variables in the condition are not mutated in the loop body |
10 | 11 | --> $DIR/infinite_loop.rs:28:11
|
11 | 12 | |
|
12 | 13 | LL | while y < 10 && x < 3 {
|
13 | 14 | | ^^^^^^^^^^^^^^^
|
| 15 | + | |
| 16 | + = note: this may lead to an infinite or to a never running loop |
14 | 17 |
|
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. |
| 18 | +error: variables in the condition are not mutated in the loop body |
16 | 19 | --> $DIR/infinite_loop.rs:35:11
|
17 | 20 | |
|
18 | 21 | LL | while !cond {
|
19 | 22 | | ^^^^^
|
| 23 | + | |
| 24 | + = note: this may lead to an infinite or to a never running loop |
20 | 25 |
|
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. |
| 26 | +error: variables in the condition are not mutated in the loop body |
22 | 27 | --> $DIR/infinite_loop.rs:79:11
|
23 | 28 | |
|
24 | 29 | LL | while i < 3 {
|
25 | 30 | | ^^^^^
|
| 31 | + | |
| 32 | + = note: this may lead to an infinite or to a never running loop |
26 | 33 |
|
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. |
| 34 | +error: variables in the condition are not mutated in the loop body |
28 | 35 | --> $DIR/infinite_loop.rs:84:11
|
29 | 36 | |
|
30 | 37 | LL | while i < 3 && j > 0 {
|
31 | 38 | | ^^^^^^^^^^^^^^
|
| 39 | + | |
| 40 | + = note: this may lead to an infinite or to a never running loop |
32 | 41 |
|
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. |
| 42 | +error: variables in the condition are not mutated in the loop body |
34 | 43 | --> $DIR/infinite_loop.rs:88:11
|
35 | 44 | |
|
36 | 45 | LL | while i < 3 {
|
37 | 46 | | ^^^^^
|
| 47 | + | |
| 48 | + = note: this may lead to an infinite or to a never running loop |
38 | 49 |
|
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. |
| 50 | +error: variables in the condition are not mutated in the loop body |
40 | 51 | --> $DIR/infinite_loop.rs:103:11
|
41 | 52 | |
|
42 | 53 | LL | while i < 3 {
|
43 | 54 | | ^^^^^
|
| 55 | + | |
| 56 | + = note: this may lead to an infinite or to a never running loop |
44 | 57 |
|
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. |
| 58 | +error: variables in the condition are not mutated in the loop body |
46 | 59 | --> $DIR/infinite_loop.rs:108:11
|
47 | 60 | |
|
48 | 61 | LL | while i < 3 {
|
49 | 62 | | ^^^^^
|
| 63 | + | |
| 64 | + = note: this may lead to an infinite or to a never running loop |
50 | 65 |
|
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. |
| 66 | +error: variables in the condition are not mutated in the loop body |
52 | 67 | --> $DIR/infinite_loop.rs:174:15
|
53 | 68 | |
|
54 | 69 | LL | while self.count < n {
|
55 | 70 | | ^^^^^^^^^^^^^^
|
| 71 | + | |
| 72 | + = note: this may lead to an infinite or to a never running loop |
| 73 | + |
| 74 | +error: variables in the condition are not mutated in the loop body |
| 75 | + --> $DIR/infinite_loop.rs:182:11 |
| 76 | + | |
| 77 | +LL | while y < 10 { |
| 78 | + | ^^^^^^ |
| 79 | + | |
| 80 | + = note: this may lead to an infinite or to a never running loop |
| 81 | + = note: this loop contains `return`s or `break`s |
| 82 | + = help: rewrite it as `if cond { loop { } }` |
| 83 | + |
| 84 | +error: variables in the condition are not mutated in the loop body |
| 85 | + --> $DIR/infinite_loop.rs:189:11 |
| 86 | + | |
| 87 | +LL | while y < 10 { |
| 88 | + | ^^^^^^ |
| 89 | + | |
| 90 | + = note: this may lead to an infinite or to a never running loop |
| 91 | + = note: this loop contains `return`s or `break`s |
| 92 | + = help: rewrite it as `if cond { loop { } }` |
56 | 93 |
|
57 |
| -error: aborting due to 9 previous errors |
| 94 | +error: aborting due to 11 previous errors |
58 | 95 |
|
0 commit comments