]> git.lizzy.rs Git - rust.git/blob - tests/ui/infinite_loop.stderr
Auto merge of #68717 - petrochenkov:stabexpat, r=varkor
[rust.git] / tests / ui / infinite_loop.stderr
1 error: variables in the condition are not mutated in the loop body
2   --> $DIR/infinite_loop.rs:21:11
3    |
4 LL |     while y < 10 {
5    |           ^^^^^^
6    |
7    = note: `#[deny(clippy::while_immutable_condition)]` on by default
8    = note: this may lead to an infinite or to a never running loop
9
10 error: variables in the condition are not mutated in the loop body
11   --> $DIR/infinite_loop.rs:26:11
12    |
13 LL |     while y < 10 && x < 3 {
14    |           ^^^^^^^^^^^^^^^
15    |
16    = note: this may lead to an infinite or to a never running loop
17
18 error: variables in the condition are not mutated in the loop body
19   --> $DIR/infinite_loop.rs:33:11
20    |
21 LL |     while !cond {
22    |           ^^^^^
23    |
24    = note: this may lead to an infinite or to a never running loop
25
26 error: variables in the condition are not mutated in the loop body
27   --> $DIR/infinite_loop.rs:77:11
28    |
29 LL |     while i < 3 {
30    |           ^^^^^
31    |
32    = note: this may lead to an infinite or to a never running loop
33
34 error: variables in the condition are not mutated in the loop body
35   --> $DIR/infinite_loop.rs:82:11
36    |
37 LL |     while i < 3 && j > 0 {
38    |           ^^^^^^^^^^^^^^
39    |
40    = note: this may lead to an infinite or to a never running loop
41
42 error: variables in the condition are not mutated in the loop body
43   --> $DIR/infinite_loop.rs:86:11
44    |
45 LL |     while i < 3 {
46    |           ^^^^^
47    |
48    = note: this may lead to an infinite or to a never running loop
49
50 error: variables in the condition are not mutated in the loop body
51   --> $DIR/infinite_loop.rs:101:11
52    |
53 LL |     while i < 3 {
54    |           ^^^^^
55    |
56    = note: this may lead to an infinite or to a never running loop
57
58 error: variables in the condition are not mutated in the loop body
59   --> $DIR/infinite_loop.rs:106:11
60    |
61 LL |     while i < 3 {
62    |           ^^^^^
63    |
64    = note: this may lead to an infinite or to a never running loop
65
66 error: variables in the condition are not mutated in the loop body
67   --> $DIR/infinite_loop.rs:172:15
68    |
69 LL |         while self.count < n {
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:180: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:187: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 { } }`
93
94 error: aborting due to 11 previous errors
95