11error: this match arm has an identical body to the `_` wildcard arm
2- --> $DIR/match_same_arms.rs:11 :9
2+ --> $DIR/match_same_arms.rs:41 :9
33 |
44LL | Abc::A => 0,
55 | ^^^^^^^^^^^ help: try removing the arm
66 |
77 = help: or try changing either arm body
88note: `_` wildcard arm here
9- --> $DIR/match_same_arms.rs:13 :9
9+ --> $DIR/match_same_arms.rs:43 :9
1010 |
1111LL | _ => 0, //~ ERROR match arms have same body
1212 | ^^^^^^
1313 = note: `-D clippy::match-same-arms` implied by `-D warnings`
1414
1515error: this match arm has an identical body to another arm
16- --> $DIR/match_same_arms.rs:17 :9
16+ --> $DIR/match_same_arms.rs:47 :9
1717 |
1818LL | (1, .., 3) => 42,
1919 | ----------^^^^^^
@@ -22,13 +22,13 @@ LL | (1, .., 3) => 42,
2222 |
2323 = help: or try changing either arm body
2424note: other arm here
25- --> $DIR/match_same_arms.rs:18 :9
25+ --> $DIR/match_same_arms.rs:48 :9
2626 |
2727LL | (.., 3) => 42, //~ ERROR match arms have same body
2828 | ^^^^^^^^^^^^^
2929
3030error: this match arm has an identical body to another arm
31- --> $DIR/match_same_arms.rs:24 :9
31+ --> $DIR/match_same_arms.rs:54 :9
3232 |
3333LL | 51 => 1, //~ ERROR match arms have same body
3434 | --^^^^^
@@ -37,13 +37,13 @@ LL | 51 => 1, //~ ERROR match arms have same body
3737 |
3838 = help: or try changing either arm body
3939note: other arm here
40- --> $DIR/match_same_arms.rs:23 :9
40+ --> $DIR/match_same_arms.rs:53 :9
4141 |
4242LL | 42 => 1,
4343 | ^^^^^^^
4444
4545error: this match arm has an identical body to another arm
46- --> $DIR/match_same_arms.rs:25 :9
46+ --> $DIR/match_same_arms.rs:55 :9
4747 |
4848LL | 41 => 2,
4949 | --^^^^^
@@ -52,13 +52,13 @@ LL | 41 => 2,
5252 |
5353 = help: or try changing either arm body
5454note: other arm here
55- --> $DIR/match_same_arms.rs:26 :9
55+ --> $DIR/match_same_arms.rs:56 :9
5656 |
5757LL | 52 => 2, //~ ERROR match arms have same body
5858 | ^^^^^^^
5959
6060error: this match arm has an identical body to another arm
61- --> $DIR/match_same_arms.rs:32 :9
61+ --> $DIR/match_same_arms.rs:62 :9
6262 |
6363LL | 2 => 2, //~ ERROR 2nd matched arms have same body
6464 | -^^^^^
@@ -67,13 +67,13 @@ LL | 2 => 2, //~ ERROR 2nd matched arms have same body
6767 |
6868 = help: or try changing either arm body
6969note: other arm here
70- --> $DIR/match_same_arms.rs:31 :9
70+ --> $DIR/match_same_arms.rs:61 :9
7171 |
7272LL | 1 => 2,
7373 | ^^^^^^
7474
7575error: this match arm has an identical body to another arm
76- --> $DIR/match_same_arms.rs:33 :9
76+ --> $DIR/match_same_arms.rs:63 :9
7777 |
7878LL | 3 => 2, //~ ERROR 3rd matched arms have same body
7979 | -^^^^^
@@ -82,13 +82,13 @@ LL | 3 => 2, //~ ERROR 3rd matched arms have same body
8282 |
8383 = help: or try changing either arm body
8484note: other arm here
85- --> $DIR/match_same_arms.rs:31 :9
85+ --> $DIR/match_same_arms.rs:61 :9
8686 |
8787LL | 1 => 2,
8888 | ^^^^^^
8989
9090error: this match arm has an identical body to another arm
91- --> $DIR/match_same_arms.rs:32 :9
91+ --> $DIR/match_same_arms.rs:62 :9
9292 |
9393LL | 2 => 2, //~ ERROR 2nd matched arms have same body
9494 | -^^^^^
@@ -97,13 +97,13 @@ LL | 2 => 2, //~ ERROR 2nd matched arms have same body
9797 |
9898 = help: or try changing either arm body
9999note: other arm here
100- --> $DIR/match_same_arms.rs:33 :9
100+ --> $DIR/match_same_arms.rs:63 :9
101101 |
102102LL | 3 => 2, //~ ERROR 3rd matched arms have same body
103103 | ^^^^^^
104104
105105error: this match arm has an identical body to another arm
106- --> $DIR/match_same_arms.rs:50 :17
106+ --> $DIR/match_same_arms.rs:80 :17
107107 |
108108LL | CommandInfo::External { name, .. } => name.to_string(),
109109 | ----------------------------------^^^^^^^^^^^^^^^^^^^^
@@ -112,7 +112,7 @@ LL | CommandInfo::External { name, .. } => name.to_string(),
112112 |
113113 = help: or try changing either arm body
114114note: other arm here
115- --> $DIR/match_same_arms.rs:49 :17
115+ --> $DIR/match_same_arms.rs:79 :17
116116 |
117117LL | CommandInfo::BuiltIn { name, .. } => name.to_string(),
118118 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments