summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/match_same_arms.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/match_same_arms.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/match_same_arms.stderr')
-rw-r--r--src/tools/clippy/tests/ui/match_same_arms.stderr33
1 files changed, 17 insertions, 16 deletions
diff --git a/src/tools/clippy/tests/ui/match_same_arms.stderr b/src/tools/clippy/tests/ui/match_same_arms.stderr
index 88b9a20a3..824dcfdce 100644
--- a/src/tools/clippy/tests/ui/match_same_arms.stderr
+++ b/src/tools/clippy/tests/ui/match_same_arms.stderr
@@ -1,19 +1,20 @@
error: this match arm has an identical body to the `_` wildcard arm
- --> $DIR/match_same_arms.rs:11:9
+ --> $DIR/match_same_arms.rs:12:9
|
LL | Abc::A => 0,
| ^^^^^^^^^^^ help: try removing the arm
|
= help: or try changing either arm body
note: `_` wildcard arm here
- --> $DIR/match_same_arms.rs:13:9
+ --> $DIR/match_same_arms.rs:14:9
|
LL | _ => 0,
| ^^^^^^
= note: `-D clippy::match-same-arms` implied by `-D warnings`
+ = help: to override `-D warnings` add `#[allow(clippy::match_same_arms)]`
error: this match arm has an identical body to another arm
- --> $DIR/match_same_arms.rs:17:9
+ --> $DIR/match_same_arms.rs:18:9
|
LL | (1, .., 3) => 42,
| ----------^^^^^^
@@ -22,13 +23,13 @@ LL | (1, .., 3) => 42,
|
= help: or try changing either arm body
note: other arm here
- --> $DIR/match_same_arms.rs:18:9
+ --> $DIR/match_same_arms.rs:19:9
|
LL | (.., 3) => 42,
| ^^^^^^^^^^^^^
error: this match arm has an identical body to another arm
- --> $DIR/match_same_arms.rs:24:9
+ --> $DIR/match_same_arms.rs:25:9
|
LL | 51 => 1,
| --^^^^^
@@ -37,13 +38,13 @@ LL | 51 => 1,
|
= help: or try changing either arm body
note: other arm here
- --> $DIR/match_same_arms.rs:23:9
+ --> $DIR/match_same_arms.rs:24:9
|
LL | 42 => 1,
| ^^^^^^^
error: this match arm has an identical body to another arm
- --> $DIR/match_same_arms.rs:25:9
+ --> $DIR/match_same_arms.rs:26:9
|
LL | 41 => 2,
| --^^^^^
@@ -52,13 +53,13 @@ LL | 41 => 2,
|
= help: or try changing either arm body
note: other arm here
- --> $DIR/match_same_arms.rs:26:9
+ --> $DIR/match_same_arms.rs:27:9
|
LL | 52 => 2,
| ^^^^^^^
error: this match arm has an identical body to another arm
- --> $DIR/match_same_arms.rs:32:9
+ --> $DIR/match_same_arms.rs:33:9
|
LL | 2 => 2,
| -^^^^^
@@ -67,13 +68,13 @@ LL | 2 => 2,
|
= help: or try changing either arm body
note: other arm here
- --> $DIR/match_same_arms.rs:31:9
+ --> $DIR/match_same_arms.rs:32:9
|
LL | 1 => 2,
| ^^^^^^
error: this match arm has an identical body to another arm
- --> $DIR/match_same_arms.rs:34:9
+ --> $DIR/match_same_arms.rs:35:9
|
LL | 3 => 2,
| -^^^^^
@@ -82,13 +83,13 @@ LL | 3 => 2,
|
= help: or try changing either arm body
note: other arm here
- --> $DIR/match_same_arms.rs:31:9
+ --> $DIR/match_same_arms.rs:32:9
|
LL | 1 => 2,
| ^^^^^^
error: this match arm has an identical body to another arm
- --> $DIR/match_same_arms.rs:32:9
+ --> $DIR/match_same_arms.rs:33:9
|
LL | 2 => 2,
| -^^^^^
@@ -97,13 +98,13 @@ LL | 2 => 2,
|
= help: or try changing either arm body
note: other arm here
- --> $DIR/match_same_arms.rs:34:9
+ --> $DIR/match_same_arms.rs:35:9
|
LL | 3 => 2,
| ^^^^^^
error: this match arm has an identical body to another arm
- --> $DIR/match_same_arms.rs:51:17
+ --> $DIR/match_same_arms.rs:52:17
|
LL | CommandInfo::External { name, .. } => name.to_string(),
| ----------------------------------^^^^^^^^^^^^^^^^^^^^
@@ -112,7 +113,7 @@ LL | CommandInfo::External { name, .. } => name.to_string(),
|
= help: or try changing either arm body
note: other arm here
- --> $DIR/match_same_arms.rs:50:17
+ --> $DIR/match_same_arms.rs:51:17
|
LL | CommandInfo::BuiltIn { name, .. } => name.to_string(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^