diff options
| author | bors <bors@rust-lang.org> | 2020-01-08 12:12:08 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-01-08 12:12:08 +0000 |
| commit | ed6468da160bd67a2ce0573427f09a98daff8c07 (patch) | |
| tree | f60a0277a129a9835cafbe0eb526b28a4888f0e8 /src/test/ui/pattern | |
| parent | 87540bd3bca8dcd86223261f8c76c5bbf6811ee6 (diff) | |
| parent | 20ebb807d523947f5fac710c4ae95ac9730ad995 (diff) | |
| download | rust-ed6468da160bd67a2ce0573427f09a98daff8c07.tar.gz rust-ed6468da160bd67a2ce0573427f09a98daff8c07.zip | |
Auto merge of #67770 - Centril:reduce-diversity-2, r=petrochenkov
More reductions in error handling diversity In this follow up to https://github.com/rust-lang/rust/pull/67744, we: - Remove all fatal / error / warning macros in `syntax` except for `struct_span_err`, which is moved to `rustc_errors`. - Lintify some hard-coded warnings which used warning macros. - Defatalize some errors. In general, the goal here is to make it painful to use fatal or unstructured errors and so we hopefully won't see many of these creep in. Fixes https://github.com/rust-lang/rust/issues/67933.
Diffstat (limited to 'src/test/ui/pattern')
| -rw-r--r-- | src/test/ui/pattern/issue-67776-match-same-name-enum-variant-refs.stderr | 2 |
1 files changed, 2 insertions, 0 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 abb8d6907e7..21218d9a173 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 @@ -3,6 +3,8 @@ warning[E0170]: pattern binding `Bar` is named the same as one of the variants o | LL | Bar => {}, | ^^^ help: to match on the variant, qualify the path: `Foo::Bar` + | + = note: `#[warn(bindings_with_variant_name)]` on by default warning[E0170]: pattern binding `Baz` is named the same as one of the variants of the type `Foo` --> $DIR/issue-67776-match-same-name-enum-variant-refs.rs:19:9 |
