summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/single_element_loop.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 18:31:44 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 18:31:44 +0000
commitc23a457e72abe608715ac76f076f47dc42af07a5 (patch)
tree2772049aaf84b5c9d0ed12ec8d86812f7a7904b6 /src/tools/clippy/tests/ui/single_element_loop.stderr
parentReleasing progress-linux version 1.73.0+dfsg1-1~progress7.99u1. (diff)
downloadrustc-c23a457e72abe608715ac76f076f47dc42af07a5.tar.xz
rustc-c23a457e72abe608715ac76f076f47dc42af07a5.zip
Merging upstream version 1.74.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/tools/clippy/tests/ui/single_element_loop.stderr')
-rw-r--r--src/tools/clippy/tests/ui/single_element_loop.stderr15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/tools/clippy/tests/ui/single_element_loop.stderr b/src/tools/clippy/tests/ui/single_element_loop.stderr
index c40c61989..603dd7406 100644
--- a/src/tools/clippy/tests/ui/single_element_loop.stderr
+++ b/src/tools/clippy/tests/ui/single_element_loop.stderr
@@ -1,5 +1,5 @@
error: for loop over a single element
- --> $DIR/single_element_loop.rs:9:5
+ --> $DIR/single_element_loop.rs:8:5
|
LL | / for item in &[item1] {
LL | | dbg!(item);
@@ -7,6 +7,7 @@ LL | | }
| |_____^
|
= note: `-D clippy::single-element-loop` implied by `-D warnings`
+ = help: to override `-D warnings` add `#[allow(clippy::single_element_loop)]`
help: try
|
LL ~ {
@@ -16,7 +17,7 @@ LL + }
|
error: for loop over a single element
- --> $DIR/single_element_loop.rs:13:5
+ --> $DIR/single_element_loop.rs:12:5
|
LL | / for item in [item1].iter() {
LL | | dbg!(item);
@@ -32,7 +33,7 @@ LL + }
|
error: for loop over a single element
- --> $DIR/single_element_loop.rs:17:5
+ --> $DIR/single_element_loop.rs:16:5
|
LL | / for item in &[0..5] {
LL | | dbg!(item);
@@ -48,7 +49,7 @@ LL + }
|
error: for loop over a single element
- --> $DIR/single_element_loop.rs:21:5
+ --> $DIR/single_element_loop.rs:20:5
|
LL | / for item in [0..5].iter_mut() {
LL | | dbg!(item);
@@ -64,7 +65,7 @@ LL + }
|
error: for loop over a single element
- --> $DIR/single_element_loop.rs:25:5
+ --> $DIR/single_element_loop.rs:24:5
|
LL | / for item in [0..5] {
LL | | dbg!(item);
@@ -80,7 +81,7 @@ LL + }
|
error: for loop over a single element
- --> $DIR/single_element_loop.rs:29:5
+ --> $DIR/single_element_loop.rs:28:5
|
LL | / for item in [0..5].into_iter() {
LL | | dbg!(item);
@@ -96,7 +97,7 @@ LL + }
|
error: for loop over a single element
- --> $DIR/single_element_loop.rs:48:5
+ --> $DIR/single_element_loop.rs:47:5
|
LL | / for _ in [42] {
LL | | let _f = |n: u32| {