11error: match is not exhaustive
2- --> $DIR/must_match_exhaustively.rs:22 :11
2+ --> $DIR/must_match_exhaustively.rs:21 :11
33 |
44LL | #[rustc_must_match_exhaustively]
55 | -------------------------------- required because of this attribute
@@ -9,7 +9,7 @@ LL | match f {
99 |
1010 = help: explicitly list all variants of the enum in a `match`
1111note: because of this wildcard pattern
12- --> $DIR/must_match_exhaustively.rs:25 :9
12+ --> $DIR/must_match_exhaustively.rs:24 :9
1313 |
1414LL | _ => {}
1515 | ^
@@ -20,7 +20,7 @@ LL | #![deny(rustc::rustc_must_match_exhaustively)]
2020 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2121
2222error: match is not exhaustive
23- --> $DIR/must_match_exhaustively.rs:28 :11
23+ --> $DIR/must_match_exhaustively.rs:27 :11
2424 |
2525LL | #[rustc_must_match_exhaustively]
2626 | -------------------------------- required because of this attribute
@@ -30,13 +30,13 @@ LL | match f {
3030 |
3131 = help: explicitly list all variants of the enum in a `match`
3232note: because of this variable binding
33- --> $DIR/must_match_exhaustively.rs:31 :9
33+ --> $DIR/must_match_exhaustively.rs:30 :9
3434 |
3535LL | a => {}
3636 | ^
3737
3838error: match is not exhaustive
39- --> $DIR/must_match_exhaustively.rs:34 :11
39+ --> $DIR/must_match_exhaustively.rs:33 :11
4040 |
4141LL | #[rustc_must_match_exhaustively]
4242 | -------------------------------- required because of this attribute
@@ -46,26 +46,26 @@ LL | match &f {
4646 |
4747 = help: explicitly list all variants of the enum in a `match`
4848note: because of this variable binding
49- --> $DIR/must_match_exhaustively.rs:37 :9
49+ --> $DIR/must_match_exhaustively.rs:36 :9
5050 |
5151LL | a => {}
5252 | ^
5353
5454error: match is not exhaustive
55- --> $DIR/must_match_exhaustively.rs:45 :8
55+ --> $DIR/must_match_exhaustively.rs:44 :8
5656 |
5757LL | #[rustc_must_match_exhaustively]
5858 | -------------------------------- required because of this attribute
5959...
60- LL | if let Foo::A {.. } = f {}
61- | ^^^^^^^^^^^^^^^^^^^
60+ LL | if let Foo::A { .. } = f {}
61+ | ^^^^^^^^^^^^^^^^^^^^^
6262 |
6363 = help: explicitly list all variants of the enum in a `match`
6464note: using if let only matches on one variant (try using `match`)
65- --> $DIR/must_match_exhaustively.rs:45 :8
65+ --> $DIR/must_match_exhaustively.rs:44 :8
6666 |
67- LL | if let Foo::A {.. } = f {}
68- | ^^^^^^^^^^^^^^^^^^^
67+ LL | if let Foo::A { .. } = f {}
68+ | ^^^^^^^^^^^^^^^^^^^^^
6969
7070error: aborting due to 4 previous errors
7171
0 commit comments