Skip to content

Commit

Permalink
The lint warnings are not reported since we report the errors first a…
Browse files Browse the repository at this point in the history
…nd then exit.

I think that behavior is fine, so I am removing the expected warnings from these tests.
  • Loading branch information
pnkfelix committed Jan 8, 2016
1 parent 40e2ac2 commit fa027d1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/test/compile-fail/match-pattern-field-mismatch-2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ fn main() {
color::cmyk(_, _, _, _) => { }
color::no_color(_) => { }
//~^ ERROR this pattern has 1 field, but the corresponding variant has no fields
//~^^ WARN `color::no_color` does not name a tuple variant or a tuple struct
}
}
}
1 change: 0 additions & 1 deletion src/test/compile-fail/pattern-error-continue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ fn main() {
match A::B(1, 2) {
A::B(_, _, _) => (), //~ ERROR this pattern has 3 fields, but
A::D(_) => (), //~ ERROR this pattern has 1 field, but
//~^ WARN `A::D` does not name a tuple variant or a tuple struct
_ => ()
}
match 'c' {
Expand Down

0 comments on commit fa027d1

Please sign in to comment.