Skip to content

Commit fa027d1

Browse files
committed
The lint warnings are not reported since we report the errors first and then exit.
I think that behavior is fine, so I am removing the expected warnings from these tests.
1 parent 40e2ac2 commit fa027d1

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/test/compile-fail/match-pattern-field-mismatch-2.rs

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ fn main() {
2121
color::cmyk(_, _, _, _) => { }
2222
color::no_color(_) => { }
2323
//~^ ERROR this pattern has 1 field, but the corresponding variant has no fields
24-
//~^^ WARN `color::no_color` does not name a tuple variant or a tuple struct
2524
}
2625
}
2726
}

src/test/compile-fail/pattern-error-continue.rs

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ fn main() {
2626
match A::B(1, 2) {
2727
A::B(_, _, _) => (), //~ ERROR this pattern has 3 fields, but
2828
A::D(_) => (), //~ ERROR this pattern has 1 field, but
29-
//~^ WARN `A::D` does not name a tuple variant or a tuple struct
3029
_ => ()
3130
}
3231
match 'c' {

0 commit comments

Comments
 (0)