@@ -89,11 +89,11 @@ note: same as this
8989 |
9090LL | Ok(3) => println!("ok"),
9191 | ^^^^^^^^^^^^^^
92- note : consider refactoring into `Ok(3) | Ok(_)`
93- --> $DIR/matches.rs:53:18
92+ help : consider refactoring into `Ok(3) | Ok(_)`
93+ --> $DIR/matches.rs:53:9
9494 |
9595LL | Ok(3) => println!("ok"),
96- | ^^^^^^^^^ ^^^^^
96+ | ^^^^^
9797 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
9898
9999error: Err(_) will match all errors, maybe not a good idea
@@ -115,11 +115,11 @@ note: same as this
115115 |
116116LL | Ok(3) => println!("ok"),
117117 | ^^^^^^^^^^^^^^
118- note : consider refactoring into `Ok(3) | Ok(_)`
119- --> $DIR/matches.rs:59:18
118+ help : consider refactoring into `Ok(3) | Ok(_)`
119+ --> $DIR/matches.rs:59:9
120120 |
121121LL | Ok(3) => println!("ok"),
122- | ^^^^^^^^^ ^^^^^
122+ | ^^^^^
123123 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
124124
125125error: Err(_) will match all errors, maybe not a good idea
@@ -141,11 +141,11 @@ note: same as this
141141 |
142142LL | Ok(3) => println!("ok"),
143143 | ^^^^^^^^^^^^^^
144- note : consider refactoring into `Ok(3) | Ok(_)`
145- --> $DIR/matches.rs:65:18
144+ help : consider refactoring into `Ok(3) | Ok(_)`
145+ --> $DIR/matches.rs:65:9
146146 |
147147LL | Ok(3) => println!("ok"),
148- | ^^^^^^^^^ ^^^^^
148+ | ^^^^^
149149 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
150150
151151error: this `match` has identical arm bodies
@@ -159,11 +159,11 @@ note: same as this
159159 |
160160LL | Ok(3) => println!("ok"),
161161 | ^^^^^^^^^^^^^^
162- note : consider refactoring into `Ok(3) | Ok(_)`
163- --> $DIR/matches.rs:74:18
162+ help : consider refactoring into `Ok(3) | Ok(_)`
163+ --> $DIR/matches.rs:74:9
164164 |
165165LL | Ok(3) => println!("ok"),
166- | ^^^^^^^^^ ^^^^^
166+ | ^^^^^
167167 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
168168
169169error: this `match` has identical arm bodies
@@ -177,11 +177,11 @@ note: same as this
177177 |
178178LL | Ok(3) => println!("ok"),
179179 | ^^^^^^^^^^^^^^
180- note : consider refactoring into `Ok(3) | Ok(_)`
181- --> $DIR/matches.rs:81:18
180+ help : consider refactoring into `Ok(3) | Ok(_)`
181+ --> $DIR/matches.rs:81:9
182182 |
183183LL | Ok(3) => println!("ok"),
184- | ^^^^^^^^^ ^^^^^
184+ | ^^^^^
185185 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
186186
187187error: this `match` has identical arm bodies
@@ -195,11 +195,11 @@ note: same as this
195195 |
196196LL | Ok(3) => println!("ok"),
197197 | ^^^^^^^^^^^^^^
198- note : consider refactoring into `Ok(3) | Ok(_)`
199- --> $DIR/matches.rs:87:18
198+ help : consider refactoring into `Ok(3) | Ok(_)`
199+ --> $DIR/matches.rs:87:9
200200 |
201201LL | Ok(3) => println!("ok"),
202- | ^^^^^^^^^ ^^^^^
202+ | ^^^^^
203203 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
204204
205205error: this `match` has identical arm bodies
@@ -213,11 +213,11 @@ note: same as this
213213 |
214214LL | Ok(3) => println!("ok"),
215215 | ^^^^^^^^^^^^^^
216- note : consider refactoring into `Ok(3) | Ok(_)`
217- --> $DIR/matches.rs:93:18
216+ help : consider refactoring into `Ok(3) | Ok(_)`
217+ --> $DIR/matches.rs:93:9
218218 |
219219LL | Ok(3) => println!("ok"),
220- | ^^^^^^^^^ ^^^^^
220+ | ^^^^^
221221 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
222222
223223error: this `match` has identical arm bodies
@@ -231,11 +231,11 @@ note: same as this
231231 |
232232LL | (Ok(x), Some(_)) => println!("ok {}", x),
233233 | ^^^^^^^^^^^^^^^^^^^^
234- note : consider refactoring into `(Ok(x), Some(_)) | (Ok(_), Some(x))`
235- --> $DIR/matches.rs:116:29
234+ help : consider refactoring into `(Ok(x), Some(_)) | (Ok(_), Some(x))`
235+ --> $DIR/matches.rs:116:9
236236 |
237237LL | (Ok(x), Some(_)) => println!("ok {}", x),
238- | ^^^^ ^^^^^^^^^^^^^^^^
238+ | ^^^^^^^^^^^^^^^^
239239 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
240240
241241error: this `match` has identical arm bodies
@@ -249,11 +249,11 @@ note: same as this
249249 |
250250LL | Ok(3) => println!("ok"),
251251 | ^^^^^^^^^^^^^^
252- note : consider refactoring into `Ok(3) | Ok(_)`
253- --> $DIR/matches.rs:131:18
252+ help : consider refactoring into `Ok(3) | Ok(_)`
253+ --> $DIR/matches.rs:131:9
254254 |
255255LL | Ok(3) => println!("ok"),
256- | ^^^^^^^^^ ^^^^^
256+ | ^^^^^
257257 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
258258
259259error: you don't need to add `&` to all patterns
0 commit comments