1
1
error: variables in the condition are not mutated in the loop body
2
- --> $DIR/infinite_loop.rs:22 :11
2
+ --> $DIR/infinite_loop.rs:20 :11
3
3
|
4
4
LL | while y < 10 {
5
5
| ^^^^^^
@@ -8,71 +8,71 @@ LL | while y < 10 {
8
8
= note: this may lead to an infinite or to a never running loop
9
9
10
10
error: variables in the condition are not mutated in the loop body
11
- --> $DIR/infinite_loop.rs:27 :11
11
+ --> $DIR/infinite_loop.rs:25 :11
12
12
|
13
13
LL | while y < 10 && x < 3 {
14
14
| ^^^^^^^^^^^^^^^
15
15
|
16
16
= note: this may lead to an infinite or to a never running loop
17
17
18
18
error: variables in the condition are not mutated in the loop body
19
- --> $DIR/infinite_loop.rs:34 :11
19
+ --> $DIR/infinite_loop.rs:32 :11
20
20
|
21
21
LL | while !cond {
22
22
| ^^^^^
23
23
|
24
24
= note: this may lead to an infinite or to a never running loop
25
25
26
26
error: variables in the condition are not mutated in the loop body
27
- --> $DIR/infinite_loop.rs:78 :11
27
+ --> $DIR/infinite_loop.rs:76 :11
28
28
|
29
29
LL | while i < 3 {
30
30
| ^^^^^
31
31
|
32
32
= note: this may lead to an infinite or to a never running loop
33
33
34
34
error: variables in the condition are not mutated in the loop body
35
- --> $DIR/infinite_loop.rs:83 :11
35
+ --> $DIR/infinite_loop.rs:81 :11
36
36
|
37
37
LL | while i < 3 && j > 0 {
38
38
| ^^^^^^^^^^^^^^
39
39
|
40
40
= note: this may lead to an infinite or to a never running loop
41
41
42
42
error: variables in the condition are not mutated in the loop body
43
- --> $DIR/infinite_loop.rs:87 :11
43
+ --> $DIR/infinite_loop.rs:85 :11
44
44
|
45
45
LL | while i < 3 {
46
46
| ^^^^^
47
47
|
48
48
= note: this may lead to an infinite or to a never running loop
49
49
50
50
error: variables in the condition are not mutated in the loop body
51
- --> $DIR/infinite_loop.rs:102 :11
51
+ --> $DIR/infinite_loop.rs:100 :11
52
52
|
53
53
LL | while i < 3 {
54
54
| ^^^^^
55
55
|
56
56
= note: this may lead to an infinite or to a never running loop
57
57
58
58
error: variables in the condition are not mutated in the loop body
59
- --> $DIR/infinite_loop.rs:107 :11
59
+ --> $DIR/infinite_loop.rs:105 :11
60
60
|
61
61
LL | while i < 3 {
62
62
| ^^^^^
63
63
|
64
64
= note: this may lead to an infinite or to a never running loop
65
65
66
66
error: variables in the condition are not mutated in the loop body
67
- --> $DIR/infinite_loop.rs:173 :15
67
+ --> $DIR/infinite_loop.rs:171 :15
68
68
|
69
69
LL | while self.count < n {
70
70
| ^^^^^^^^^^^^^^
71
71
|
72
72
= note: this may lead to an infinite or to a never running loop
73
73
74
74
error: variables in the condition are not mutated in the loop body
75
- --> $DIR/infinite_loop.rs:181 :11
75
+ --> $DIR/infinite_loop.rs:179 :11
76
76
|
77
77
LL | while y < 10 {
78
78
| ^^^^^^
@@ -82,7 +82,7 @@ LL | while y < 10 {
82
82
= help: rewrite it as `if cond { loop { } }`
83
83
84
84
error: variables in the condition are not mutated in the loop body
85
- --> $DIR/infinite_loop.rs:188 :11
85
+ --> $DIR/infinite_loop.rs:186 :11
86
86
|
87
87
LL | while y < 10 {
88
88
| ^^^^^^
0 commit comments