]> git.lizzy.rs Git - rust.git/blob - tests/ui/infinite_loop.stderr
Adapt the *.stderr files of the ui-tests to the tool_lints
[rust.git] / tests / ui / infinite_loop.stderr
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.
2   --> $DIR/infinite_loop.rs:16:11
3    |
4 16 |     while y < 10 {
5    |           ^^^^^^
6    |
7    = note: #[deny(clippy::while_immutable_condition)] on by default
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.
10   --> $DIR/infinite_loop.rs:21:11
11    |
12 21 |     while y < 10 && x < 3 {
13    |           ^^^^^^^^^^^^^^^
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.
16   --> $DIR/infinite_loop.rs:28:11
17    |
18 28 |     while !cond {
19    |           ^^^^^
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.
22   --> $DIR/infinite_loop.rs:72:11
23    |
24 72 |     while i < 3 {
25    |           ^^^^^
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.
28   --> $DIR/infinite_loop.rs:77:11
29    |
30 77 |     while i < 3 && j > 0 {
31    |           ^^^^^^^^^^^^^^
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.
34   --> $DIR/infinite_loop.rs:81:11
35    |
36 81 |     while i < 3 {
37    |           ^^^^^
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.
40   --> $DIR/infinite_loop.rs:96:11
41    |
42 96 |     while i < 3 {
43    |           ^^^^^
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.
46    --> $DIR/infinite_loop.rs:101:11
47     |
48 101 |     while i < 3 {
49     |           ^^^^^
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.
52    --> $DIR/infinite_loop.rs:164:15
53     |
54 164 |         while self.count < n {
55     |               ^^^^^^^^^^^^^^
56
57 error: aborting due to 9 previous errors
58