@@ -20,13 +20,10 @@ LL | (1, .., 3) => 42,
2020 | ^^^^^^^^^^^^^^^^
2121 |
2222 = help: try changing either arm body
23- help: or try merging the arm patterns
23+ help: or try merging the arm patterns and removing the obsolete arm
2424 |
25- LL | (1, .., 3) | (.., 3) => 42,
26- | ~~~~~~~~~~~~~~~~~~~~
27- help: and remove this obsolete arm
28- |
29- LL - (.., 3) => 42,
25+ LL ~ (1, .., 3) | (.., 3) => 42,
26+ LL ~ _ => 0,
3027 |
3128
3229error: this match arm has an identical body to another arm
@@ -36,13 +33,11 @@ LL | 51 => 1,
3633 | ^^^^^^^
3734 |
3835 = 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
36+ help: or try merging the arm patterns and removing the obsolete arm
4437 |
4538LL - 42 => 1,
39+ LL - 51 => 1,
40+ LL + 51 | 42 => 1,
4641 |
4742
4843error: this match arm has an identical body to another arm
@@ -52,13 +47,10 @@ LL | 41 => 2,
5247 | ^^^^^^^
5348 |
5449 = help: try changing either arm body
55- help: or try merging the arm patterns
50+ help: or try merging the arm patterns and removing the obsolete arm
5651 |
57- LL | 41 | 52 => 2,
58- | ~~~~~~~
59- help: and remove this obsolete arm
60- |
61- LL - 52 => 2,
52+ LL ~ 41 | 52 => 2,
53+ LL ~ _ => 0,
6254 |
6355
6456error: this match arm has an identical body to another arm
@@ -68,13 +60,11 @@ LL | 2 => 2,
6860 | ^^^^^^
6961 |
7062 = 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
63+ help: or try merging the arm patterns and removing the obsolete arm
7664 |
7765LL - 1 => 2,
66+ LL - 2 => 2,
67+ LL + 2 | 1 => 2,
7868 |
7969
8070error: this match arm has an identical body to another arm
@@ -84,13 +74,11 @@ LL | 3 => 2,
8474 | ^^^^^^
8575 |
8676 = help: try changing either arm body
87- help: or try merging the arm patterns
77+ help: or try merging the arm patterns and removing the obsolete arm
8878 |
89- LL | 3 | 1 => 2,
90- | ~~~~~
91- help: and remove this obsolete arm
92- |
93- LL - 1 => 2,
79+ LL ~ 2 => 2,
80+ LL |
81+ LL ~ 3 | 1 => 2,
9482 |
9583
9684error: this match arm has an identical body to another arm
@@ -100,14 +88,11 @@ LL | 2 => 2,
10088 | ^^^^^^
10189 |
10290 = help: try changing either arm body
103- help: or try merging the arm patterns
91+ help: or try merging the arm patterns and removing the obsolete arm
10492 |
105- LL | 2 | 3 => 2,
106- | ~~~~~
107- help: and remove this obsolete arm
108- |
109- LL - 3 => 2,
110- LL +
93+ LL ~ 2 | 3 => 2,
94+ LL |
95+ LL ~
11196 |
11297
11398error: this match arm has an identical body to another arm
@@ -117,13 +102,11 @@ LL | CommandInfo::External { name, .. } => name.to_string(),
117102 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
118103 |
119104 = 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
105+ help: or try merging the arm patterns and removing the obsolete arm
125106 |
126107LL - CommandInfo::BuiltIn { name, .. } => name.to_string(),
108+ LL - CommandInfo::External { name, .. } => name.to_string(),
109+ LL + CommandInfo::External { name, .. } | CommandInfo::BuiltIn { name, .. } => name.to_string(),
127110 |
128111
129112error: aborting due to 8 previous errors
0 commit comments