diff options
| author | Michael Wright <mikerite@lavabit.com> | 2019-05-09 05:54:05 +0200 |
|---|---|---|
| committer | Michael Wright <mikerite@lavabit.com> | 2019-05-09 05:54:05 +0200 |
| commit | 225f86f2c30280910c44cc763c9e1a4bf485ea2a (patch) | |
| tree | d0497317554882be810c260d5d9b33fceb56e2d4 | |
| parent | 983edde284762b75f17138035958017d2b079f62 (diff) | |
| download | rust-225f86f2c30280910c44cc763c9e1a4bf485ea2a.tar.gz rust-225f86f2c30280910c44cc763c9e1a4bf485ea2a.zip | |
Fix while_let_on_iterator.stderr
| -rw-r--r-- | tests/ui/while_let_on_iterator.stderr | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/ui/while_let_on_iterator.stderr b/tests/ui/while_let_on_iterator.stderr index 36ada4e542e..03d2ef55066 100644 --- a/tests/ui/while_let_on_iterator.stderr +++ b/tests/ui/while_let_on_iterator.stderr @@ -1,5 +1,5 @@ error: this loop could be written as a `for` loop - --> $DIR/while_loop.rs:6:33 + --> $DIR/while_let_on_iterator.rs:6:33 | LL | while let Option::Some(x) = iter.next() { | ^^^^^^^^^^^ help: try: `for x in iter { .. }` @@ -7,25 +7,25 @@ LL | while let Option::Some(x) = iter.next() { = note: `-D clippy::while-let-on-iterator` implied by `-D warnings` error: this loop could be written as a `for` loop - --> $DIR/while_loop.rs:11:25 + --> $DIR/while_let_on_iterator.rs:11:25 | LL | while let Some(x) = iter.next() { | ^^^^^^^^^^^ help: try: `for x in iter { .. }` error: this loop could be written as a `for` loop - --> $DIR/while_loop.rs:16:25 + --> $DIR/while_let_on_iterator.rs:16:25 | LL | while let Some(_) = iter.next() {} | ^^^^^^^^^^^ help: try: `for _ in iter { .. }` error: this loop could be written as a `for` loop - --> $DIR/while_loop.rs:95:29 + --> $DIR/while_let_on_iterator.rs:95:29 | LL | while let Some(v) = y.next() { | ^^^^^^^^ help: try: `for v in y { .. }` error: this loop could be written as a `for` loop - --> $DIR/while_loop.rs:120:26 + --> $DIR/while_let_on_iterator.rs:120:26 | LL | while let Some(..) = values.iter().next() { | ^^^^^^^^^^^^^^^^^^^^ help: try: `for _ in values.iter() { .. }` |
