]> git.lizzy.rs Git - rust.git/commitdiff
The lint warnings are not reported since we report the errors first and then exit.
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Fri, 8 Jan 2016 15:19:13 +0000 (16:19 +0100)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Fri, 8 Jan 2016 15:19:13 +0000 (16:19 +0100)
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
src/test/compile-fail/pattern-error-continue.rs

index 17debdabb61f08fe1982e77ae63037a6f7bc21a9..e63ddf6c7fd9b6ff210acf15b07cfecfcf459221 100644 (file)
@@ -21,7 +21,6 @@ fn foo(c: color) {
           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
         }
     }
 }
index 1721d1f0ae11c6697426314235917d7aaf963a27..aa7202574abfc3d15c0230790723e81f0d97b56c 100644 (file)
@@ -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' {