diff options
| author | bors <bors@rust-lang.org> | 2020-04-12 00:31:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-04-12 00:31:11 +0000 |
| commit | 941d4352d75bf5c8b509ac4a8c30f5e1e7bf8b8a (patch) | |
| tree | 9fbf839de02435cea4e0b849bd3086e60f754e52 /src/test/ui/pattern | |
| parent | 378901d988cd59d29b3643ab6e9cba8a31421271 (diff) | |
| parent | b85c64c3ea147cadc6014fdea710718a8a153b6b (diff) | |
| download | rust-941d4352d75bf5c8b509ac4a8c30f5e1e7bf8b8a.tar.gz rust-941d4352d75bf5c8b509ac4a8c30f5e1e7bf8b8a.zip | |
Auto merge of #69926 - RoccoDev:master, r=estebank,varkor
rustc: Add a warning count upon completion This adds a `build completed with one warning/x warnings` message, similar to the already present `aborted due to previous error` message.
Diffstat (limited to 'src/test/ui/pattern')
3 files changed, 6 insertions, 1 deletions
diff --git a/src/test/ui/pattern/issue-67776-match-same-name-enum-variant-refs.stderr b/src/test/ui/pattern/issue-67776-match-same-name-enum-variant-refs.stderr index 21218d9a173..6f3613b63c9 100644 --- a/src/test/ui/pattern/issue-67776-match-same-name-enum-variant-refs.stderr +++ b/src/test/ui/pattern/issue-67776-match-same-name-enum-variant-refs.stderr @@ -36,3 +36,6 @@ warning[E0170]: pattern binding `Baz` is named the same as one of the variants o LL | Baz => {}, | ^^^ help: to match on the variant, qualify the path: `Foo::Baz` +warning: 6 warnings emitted + +For more information about this error, try `rustc --explain E0170`. diff --git a/src/test/ui/pattern/usefulness/issue-43253.stderr b/src/test/ui/pattern/usefulness/issue-43253.stderr index cdd3067a678..6e65c51dd3c 100644 --- a/src/test/ui/pattern/usefulness/issue-43253.stderr +++ b/src/test/ui/pattern/usefulness/issue-43253.stderr @@ -48,3 +48,5 @@ warning: unreachable pattern LL | 6 => {}, | ^ +warning: 6 warnings emitted + diff --git a/src/test/ui/pattern/usefulness/match-range-fail-dominate.stderr b/src/test/ui/pattern/usefulness/match-range-fail-dominate.stderr index 76a6d1d3eaa..6922170fccb 100644 --- a/src/test/ui/pattern/usefulness/match-range-fail-dominate.stderr +++ b/src/test/ui/pattern/usefulness/match-range-fail-dominate.stderr @@ -89,5 +89,5 @@ LL | 0.02f64 => {} = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620> -error: aborting due to 5 previous errors +error: aborting due to 5 previous errors; 6 warnings emitted |
