diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2016-01-08 16:19:13 +0100 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2016-01-08 16:19:13 +0100 |
| commit | fa027d1417e7eea7d7a65c6a4a60d63dac7917ca (patch) | |
| tree | 062c33c49e252116d3ebf070863e80501323f8a1 | |
| parent | 40e2ac28e4bff4f38bedad90345e4dc6018605ac (diff) | |
| download | rust-fa027d1417e7eea7d7a65c6a4a60d63dac7917ca.tar.gz rust-fa027d1417e7eea7d7a65c6a4a60d63dac7917ca.zip | |
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.
| -rw-r--r-- | src/test/compile-fail/match-pattern-field-mismatch-2.rs | 1 | ||||
| -rw-r--r-- | src/test/compile-fail/pattern-error-continue.rs | 1 |
2 files changed, 0 insertions, 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' { |
