11error: 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
33 |
44LL | while y < 10 {
55 | ^^^^^^
@@ -8,71 +8,71 @@ LL | while y < 10 {
88 = note: this may lead to an infinite or to a never running loop
99
1010error: 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
1212 |
1313LL | while y < 10 && x < 3 {
1414 | ^^^^^^^^^^^^^^^
1515 |
1616 = note: this may lead to an infinite or to a never running loop
1717
1818error: 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
2020 |
2121LL | while !cond {
2222 | ^^^^^
2323 |
2424 = note: this may lead to an infinite or to a never running loop
2525
2626error: 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
2828 |
2929LL | while i < 3 {
3030 | ^^^^^
3131 |
3232 = note: this may lead to an infinite or to a never running loop
3333
3434error: 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
3636 |
3737LL | while i < 3 && j > 0 {
3838 | ^^^^^^^^^^^^^^
3939 |
4040 = note: this may lead to an infinite or to a never running loop
4141
4242error: 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
4444 |
4545LL | while i < 3 {
4646 | ^^^^^
4747 |
4848 = note: this may lead to an infinite or to a never running loop
4949
5050error: 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
5252 |
5353LL | while i < 3 {
5454 | ^^^^^
5555 |
5656 = note: this may lead to an infinite or to a never running loop
5757
5858error: 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
6060 |
6161LL | while i < 3 {
6262 | ^^^^^
6363 |
6464 = note: this may lead to an infinite or to a never running loop
6565
6666error: 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
6868 |
6969LL | while self.count < n {
7070 | ^^^^^^^^^^^^^^
7171 |
7272 = note: this may lead to an infinite or to a never running loop
7373
7474error: 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
7676 |
7777LL | while y < 10 {
7878 | ^^^^^^
@@ -82,7 +82,7 @@ LL | while y < 10 {
8282 = help: rewrite it as `if cond { loop { } }`
8383
8484error: 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
8686 |
8787LL | while y < 10 {
8888 | ^^^^^^
0 commit comments