@@ -43,69 +43,69 @@ LL | while let Some(_) = y.next() {
43
43
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `for _ in y`
44
44
45
45
error: this loop could be written as a `for` loop
46
- --> $DIR/while_let_on_iterator.rs:193 :9
46
+ --> $DIR/while_let_on_iterator.rs:191 :9
47
47
|
48
48
LL | while let Some(m) = it.next() {
49
49
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `for m in &mut it`
50
50
51
51
error: this loop could be written as a `for` loop
52
- --> $DIR/while_let_on_iterator.rs:204 :5
52
+ --> $DIR/while_let_on_iterator.rs:202 :5
53
53
|
54
54
LL | while let Some(n) = it.next() {
55
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `for n in it`
56
56
57
57
error: this loop could be written as a `for` loop
58
- --> $DIR/while_let_on_iterator.rs:206 :9
58
+ --> $DIR/while_let_on_iterator.rs:204 :9
59
59
|
60
60
LL | while let Some(m) = it.next() {
61
61
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `for m in it`
62
62
63
63
error: this loop could be written as a `for` loop
64
- --> $DIR/while_let_on_iterator.rs:215 :9
64
+ --> $DIR/while_let_on_iterator.rs:213 :9
65
65
|
66
66
LL | while let Some(m) = it.next() {
67
67
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `for m in it`
68
68
69
69
error: this loop could be written as a `for` loop
70
- --> $DIR/while_let_on_iterator.rs:224 :9
70
+ --> $DIR/while_let_on_iterator.rs:222 :9
71
71
|
72
72
LL | while let Some(m) = it.next() {
73
73
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `for m in &mut it`
74
74
75
75
error: this loop could be written as a `for` loop
76
- --> $DIR/while_let_on_iterator.rs:241 :9
76
+ --> $DIR/while_let_on_iterator.rs:239 :9
77
77
|
78
78
LL | while let Some(m) = it.next() {
79
79
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `for m in &mut it`
80
80
81
81
error: this loop could be written as a `for` loop
82
- --> $DIR/while_let_on_iterator.rs:256 :13
82
+ --> $DIR/while_let_on_iterator.rs:254 :13
83
83
|
84
84
LL | while let Some(i) = self.0.next() {
85
85
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `for i in &mut self.0`
86
86
87
87
error: manual `!RangeInclusive::contains` implementation
88
- --> $DIR/while_let_on_iterator.rs:257 :20
88
+ --> $DIR/while_let_on_iterator.rs:255 :20
89
89
|
90
90
LL | if i < 3 || i > 7 {
91
91
| ^^^^^^^^^^^^^^ help: use: `!(3..=7).contains(&i)`
92
92
|
93
93
= note: `-D clippy::manual-range-contains` implied by `-D warnings`
94
94
95
95
error: this loop could be written as a `for` loop
96
- --> $DIR/while_let_on_iterator.rs:288 :13
96
+ --> $DIR/while_let_on_iterator.rs:286 :13
97
97
|
98
98
LL | while let Some(i) = self.0.0.0.next() {
99
99
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `for i in &mut self.0.0.0`
100
100
101
101
error: this loop could be written as a `for` loop
102
- --> $DIR/while_let_on_iterator.rs:317 :5
102
+ --> $DIR/while_let_on_iterator.rs:315 :5
103
103
|
104
104
LL | while let Some(n) = it.next() {
105
105
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `for n in &mut it`
106
106
107
107
error: this loop could be written as a `for` loop
108
- --> $DIR/while_let_on_iterator.rs:327 :5
108
+ --> $DIR/while_let_on_iterator.rs:325 :5
109
109
|
110
110
LL | while let Some(..) = it.next() {
111
111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `for _ in it`
0 commit comments