@@ -20,13 +20,10 @@ LL | (1, .., 3) => 42,
20
20
| ^^^^^^^^^^^^^^^^
21
21
|
22
22
= 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
24
24
|
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,
30
27
|
31
28
32
29
error: this match arm has an identical body to another arm
@@ -36,13 +33,11 @@ LL | 51 => 1,
36
33
| ^^^^^^^
37
34
|
38
35
= 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
44
37
|
45
38
LL - 42 => 1,
39
+ LL - 51 => 1,
40
+ LL + 51 | 42 => 1,
46
41
|
47
42
48
43
error: this match arm has an identical body to another arm
@@ -52,13 +47,10 @@ LL | 41 => 2,
52
47
| ^^^^^^^
53
48
|
54
49
= 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
56
51
|
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,
62
54
|
63
55
64
56
error: this match arm has an identical body to another arm
@@ -68,13 +60,11 @@ LL | 2 => 2,
68
60
| ^^^^^^
69
61
|
70
62
= 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
76
64
|
77
65
LL - 1 => 2,
66
+ LL - 2 => 2,
67
+ LL + 2 | 1 => 2,
78
68
|
79
69
80
70
error: this match arm has an identical body to another arm
@@ -84,13 +74,11 @@ LL | 3 => 2,
84
74
| ^^^^^^
85
75
|
86
76
= 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
88
78
|
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,
94
82
|
95
83
96
84
error: this match arm has an identical body to another arm
@@ -100,14 +88,11 @@ LL | 2 => 2,
100
88
| ^^^^^^
101
89
|
102
90
= 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
104
92
|
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 ~
111
96
|
112
97
113
98
error: this match arm has an identical body to another arm
@@ -117,13 +102,11 @@ LL | CommandInfo::External { name, .. } => name.to_string(),
117
102
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
118
103
|
119
104
= 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
125
106
|
126
107
LL - 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(),
127
110
|
128
111
129
112
error: aborting due to 8 previous errors
0 commit comments