From fa027d1417e7eea7d7a65c6a4a60d63dac7917ca Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Fri, 8 Jan 2016 16:19:13 +0100 Subject: 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. --- src/test/compile-fail/match-pattern-field-mismatch-2.rs | 1 - src/test/compile-fail/pattern-error-continue.rs | 1 - 2 files changed, 2 deletions(-) diff --git a/src/test/compile-fail/match-pattern-field-mismatch-2.rs b/src/test/compile-fail/match-pattern-field-mismatch-2.rs index 17debdabb61..e63ddf6c7fd 100644 --- a/src/test/compile-fail/match-pattern-field-mismatch-2.rs +++ b/src/test/compile-fail/match-pattern-field-mismatch-2.rs @@ -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 } } } diff --git a/src/test/compile-fail/pattern-error-continue.rs b/src/test/compile-fail/pattern-error-continue.rs index 1721d1f0ae1..aa7202574ab 100644 --- a/src/test/compile-fail/pattern-error-continue.rs +++ b/src/test/compile-fail/pattern-error-continue.rs @@ -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' { -- cgit 1.4.1-3-g733a5