@@ -65,11 +65,11 @@ note: same as this
6565 |
6666LL | 42 => foo(),
6767 | ^^^^^
68- note : consider refactoring into `42 | 51`
69- --> $DIR/match_same_arms.rs:56:15
68+ help : consider refactoring into `42 | 51`
69+ --> $DIR/match_same_arms.rs:56:9
7070 |
7171LL | 42 => foo(),
72- | ^^^ ^^
72+ | ^^
7373
7474error: this `match` has identical arm bodies
7575 --> $DIR/match_same_arms.rs:63:17
@@ -82,11 +82,11 @@ note: same as this
8282 |
8383LL | Some(_) => 24,
8484 | ^^
85- note : consider refactoring into `Some(_) | None`
86- --> $DIR/match_same_arms.rs:62:20
85+ help : consider refactoring into `Some(_) | None`
86+ --> $DIR/match_same_arms.rs:62:9
8787 |
8888LL | Some(_) => 24,
89- | ^^
89+ | ^^^^^ ^^
9090
9191error: this `match` has identical arm bodies
9292 --> $DIR/match_same_arms.rs:85:28
@@ -99,11 +99,11 @@ note: same as this
9999 |
100100LL | (Some(a), None) => bar(a),
101101 | ^^^^^^
102- note : consider refactoring into `(Some(a), None) | (None, Some(a))`
103- --> $DIR/match_same_arms.rs:84:28
102+ help : consider refactoring into `(Some(a), None) | (None, Some(a))`
103+ --> $DIR/match_same_arms.rs:84:9
104104 |
105105LL | (Some(a), None) => bar(a),
106- | ^^^^^^
106+ | ^^^^^^^^^ ^^^^^^
107107
108108error: this `match` has identical arm bodies
109109 --> $DIR/match_same_arms.rs:91:26
@@ -116,11 +116,11 @@ note: same as this
116116 |
117117LL | (Some(a), ..) => bar(a),
118118 | ^^^^^^
119- note : consider refactoring into `(Some(a), ..) | (.., Some(a))`
120- --> $DIR/match_same_arms.rs:90:26
119+ help : consider refactoring into `(Some(a), ..) | (.., Some(a))`
120+ --> $DIR/match_same_arms.rs:90:9
121121 |
122122LL | (Some(a), ..) => bar(a),
123- | ^^^^^^
123+ | ^^^^^^^ ^^^^^^
124124
125125error: this `match` has identical arm bodies
126126 --> $DIR/match_same_arms.rs:97:20
@@ -133,11 +133,96 @@ note: same as this
133133 |
134134LL | (1, .., 3) => 42,
135135 | ^^
136- note : consider refactoring into `(1, .., 3) | (.., 3)`
137- --> $DIR/match_same_arms.rs:96:23
136+ help : consider refactoring into `(1, .., 3) | (.., 3)`
137+ --> $DIR/match_same_arms.rs:96:9
138138 |
139139LL | (1, .., 3) => 42,
140- | ^^
140+ | ^^^^^^^^^^
141+
142+ error: this `match` has identical arm bodies
143+ --> $DIR/match_same_arms.rs:114:15
144+ |
145+ LL | 51 => 1, //~ ERROR match arms have same body
146+ | ^
147+ |
148+ note: same as this
149+ --> $DIR/match_same_arms.rs:113:15
150+ |
151+ LL | 42 => 1,
152+ | ^
153+ help: consider refactoring into `42 | 51`
154+ --> $DIR/match_same_arms.rs:113:9
155+ |
156+ LL | 42 => 1,
157+ | ^^
158+
159+ error: this `match` has identical arm bodies
160+ --> $DIR/match_same_arms.rs:116:15
161+ |
162+ LL | 52 => 2, //~ ERROR match arms have same body
163+ | ^
164+ |
165+ note: same as this
166+ --> $DIR/match_same_arms.rs:115:15
167+ |
168+ LL | 41 => 2,
169+ | ^
170+ help: consider refactoring into `41 | 52`
171+ --> $DIR/match_same_arms.rs:115:9
172+ |
173+ LL | 41 => 2,
174+ | ^^
175+
176+ error: this `match` has identical arm bodies
177+ --> $DIR/match_same_arms.rs:122:14
178+ |
179+ LL | 2 => 2, //~ ERROR 2nd matched arms have same body
180+ | ^
181+ |
182+ note: same as this
183+ --> $DIR/match_same_arms.rs:121:14
184+ |
185+ LL | 1 => 2,
186+ | ^
187+ help: consider refactoring into `1 | 2`
188+ --> $DIR/match_same_arms.rs:121:9
189+ |
190+ LL | 1 => 2,
191+ | ^
192+
193+ error: this `match` has identical arm bodies
194+ --> $DIR/match_same_arms.rs:123:14
195+ |
196+ LL | 3 => 2, //~ ERROR 3rd matched arms have same body
197+ | ^
198+ |
199+ note: same as this
200+ --> $DIR/match_same_arms.rs:121:14
201+ |
202+ LL | 1 => 2,
203+ | ^
204+ help: consider refactoring into `1 | 3`
205+ --> $DIR/match_same_arms.rs:121:9
206+ |
207+ LL | 1 => 2,
208+ | ^
209+
210+ error: this `match` has identical arm bodies
211+ --> $DIR/match_same_arms.rs:123:14
212+ |
213+ LL | 3 => 2, //~ ERROR 3rd matched arms have same body
214+ | ^
215+ |
216+ note: same as this
217+ --> $DIR/match_same_arms.rs:122:14
218+ |
219+ LL | 2 => 2, //~ ERROR 2nd matched arms have same body
220+ | ^
221+ help: consider refactoring into `2 | 3`
222+ --> $DIR/match_same_arms.rs:122:9
223+ |
224+ LL | 2 => 2, //~ ERROR 2nd matched arms have same body
225+ | ^
141226
142- error: aborting due to 7 previous errors
227+ error: aborting due to 12 previous errors
143228
0 commit comments