@@ -2,7 +2,7 @@ error: this match arm has an identical body to the `_` wildcard arm
22 --> tests/ui/match_same_arms.rs:12:9
33 |
44LL | Abc::A => 0,
5- | ^^^^^^^^^^^ help: try removing the arm
5+ | ^^^^^^^^^^^^^ help: try removing the arm
66 |
77 = help: or try changing either arm body
88note: `_` wildcard arm here
@@ -17,106 +17,114 @@ error: this match arm has an identical body to another arm
1717 --> tests/ui/match_same_arms.rs:18:9
1818 |
1919LL | (1, .., 3) => 42,
20- | ----------^^^^^^
21- | |
22- | help: try merging the arm patterns: `(1, .., 3) | (.., 3)`
20+ | ^^^^^^^^^^^^^^^^
2321 |
24- = help: or try changing either arm body
25- note: other arm here
26- --> tests/ui/match_same_arms.rs:19:9
22+ = help: try changing either arm body
23+ help: or try merging the arm patterns
24+ |
25+ LL | (1, .., 3) | (.., 3) => 42,
26+ | ~~~~~~~~~~~~~~~~~~~~
27+ help: and remove this obsolete arm
28+ |
29+ LL - (.., 3) => 42,
2730 |
28- LL | (.., 3) => 42,
29- | ^^^^^^^^^^^^^
3031
3132error: this match arm has an identical body to another arm
3233 --> tests/ui/match_same_arms.rs:25:9
3334 |
3435LL | 51 => 1,
35- | --^^^^^
36- | |
37- | help: try merging the arm patterns: `51 | 42`
36+ | ^^^^^^^
3837 |
39- = help: or try changing either arm body
40- note: other arm here
41- --> tests/ui/match_same_arms.rs:24:9
38+ = help: try changing either arm body
39+ help: or try merging the arm patterns
40+ |
41+ LL | 51 | 42 => 1,
42+ | ~~~~~~~
43+ help: and remove this obsolete arm
44+ |
45+ LL - 42 => 1,
4246 |
43- LL | 42 => 1,
44- | ^^^^^^^
4547
4648error: this match arm has an identical body to another arm
4749 --> tests/ui/match_same_arms.rs:26:9
4850 |
4951LL | 41 => 2,
50- | --^^^^^
51- | |
52- | help: try merging the arm patterns: `41 | 52`
52+ | ^^^^^^^
5353 |
54- = help: or try changing either arm body
55- note: other arm here
56- --> tests/ui/match_same_arms.rs:27:9
54+ = help: try changing either arm body
55+ help: or try merging the arm patterns
56+ |
57+ LL | 41 | 52 => 2,
58+ | ~~~~~~~
59+ help: and remove this obsolete arm
60+ |
61+ LL - 52 => 2,
5762 |
58- LL | 52 => 2,
59- | ^^^^^^^
6063
6164error: this match arm has an identical body to another arm
6265 --> tests/ui/match_same_arms.rs:33:9
6366 |
6467LL | 2 => 2,
65- | -^^^^^
66- | |
67- | help: try merging the arm patterns: `2 | 1`
68+ | ^^^^^^
6869 |
69- = help: or try changing either arm body
70- note: other arm here
71- --> tests/ui/match_same_arms.rs:32:9
70+ = help: try changing either arm body
71+ help: or try merging the arm patterns
72+ |
73+ LL | 2 | 1 => 2,
74+ | ~~~~~
75+ help: and remove this obsolete arm
76+ |
77+ LL - 1 => 2,
7278 |
73- LL | 1 => 2,
74- | ^^^^^^
7579
7680error: this match arm has an identical body to another arm
7781 --> tests/ui/match_same_arms.rs:35:9
7882 |
7983LL | 3 => 2,
80- | -^^^^^
81- | |
82- | help: try merging the arm patterns: `3 | 1`
84+ | ^^^^^^
8385 |
84- = help: or try changing either arm body
85- note: other arm here
86- --> tests/ui/match_same_arms.rs:32:9
86+ = help: try changing either arm body
87+ help: or try merging the arm patterns
88+ |
89+ LL | 3 | 1 => 2,
90+ | ~~~~~
91+ help: and remove this obsolete arm
92+ |
93+ LL - 1 => 2,
8794 |
88- LL | 1 => 2,
89- | ^^^^^^
9095
9196error: this match arm has an identical body to another arm
9297 --> tests/ui/match_same_arms.rs:33:9
9398 |
9499LL | 2 => 2,
95- | -^^^^^
96- | |
97- | help: try merging the arm patterns: `2 | 3`
100+ | ^^^^^^
98101 |
99- = help: or try changing either arm body
100- note: other arm here
101- --> tests/ui/match_same_arms.rs:35:9
102+ = help: try changing either arm body
103+ help: or try merging the arm patterns
104+ |
105+ LL | 2 | 3 => 2,
106+ | ~~~~~
107+ help: and remove this obsolete arm
108+ |
109+ LL - 3 => 2,
110+ LL +
102111 |
103- LL | 3 => 2,
104- | ^^^^^^
105112
106113error: this match arm has an identical body to another arm
107114 --> tests/ui/match_same_arms.rs:52:17
108115 |
109116LL | CommandInfo::External { name, .. } => name.to_string(),
110- | ----------------------------------^^^^^^^^^^^^^^^^^^^^
111- | |
112- | help: try merging the arm patterns: `CommandInfo::External { name, .. } | CommandInfo::BuiltIn { name, .. }`
117+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
113118 |
114- = help: or try changing either arm body
115- note: other arm here
116- --> tests/ui/match_same_arms.rs:51:17
119+ = help: try changing either arm body
120+ help: or try merging the arm patterns
121+ |
122+ LL | CommandInfo::External { name, .. } | CommandInfo::BuiltIn { name, .. } => name.to_string(),
123+ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
124+ help: and remove this obsolete arm
125+ |
126+ LL - CommandInfo::BuiltIn { name, .. } => name.to_string(),
117127 |
118- LL | CommandInfo::BuiltIn { name, .. } => name.to_string(),
119- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
120128
121129error: aborting due to 8 previous errors
122130
0 commit comments