diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2021-06-21 19:07:19 -0700 |
|---|---|---|
| committer | Esteban Kuber <esteban@kuber.com.ar> | 2021-08-11 09:46:24 +0000 |
| commit | 99f2977031706dfef6730764d359b9e5d0f673b4 (patch) | |
| tree | 16caa7ac1411f6ebe1e56c175e9799a442b59832 /src/test/ui/pattern/usefulness | |
| parent | d488de82f30fd1dcb0220d57498638596622394e (diff) | |
| download | rust-99f2977031706dfef6730764d359b9e5d0f673b4.tar.gz rust-99f2977031706dfef6730764d359b9e5d0f673b4.zip | |
Modify structured suggestion output
* On suggestions that include deletions, use a diff inspired output format * When suggesting addition, use `+` as underline * Color highlight modified span
Diffstat (limited to 'src/test/ui/pattern/usefulness')
| -rw-r--r-- | src/test/ui/pattern/usefulness/non-exhaustive-defined-here.stderr | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/ui/pattern/usefulness/non-exhaustive-defined-here.stderr b/src/test/ui/pattern/usefulness/non-exhaustive-defined-here.stderr index 29aa0c1c926..02eff28015d 100644 --- a/src/test/ui/pattern/usefulness/non-exhaustive-defined-here.stderr +++ b/src/test/ui/pattern/usefulness/non-exhaustive-defined-here.stderr @@ -49,7 +49,7 @@ LL | let E::A = e; help: you might want to use `if let` to ignore the variant that isn't matched | LL | if let E::A = e { /* */ } - | ^^^^^^^^^^^^^^^^^^^^^^^^^ + | ~~~~~~~~~~~~~~~~~~~~~~~~~ error[E0004]: non-exhaustive patterns: `&B` and `&C` not covered --> $DIR/non-exhaustive-defined-here.rs:40:11 @@ -102,7 +102,7 @@ LL | let E::A = e; help: you might want to use `if let` to ignore the variant that isn't matched | LL | if let E::A = e { /* */ } - | ^^^^^^^^^^^^^^^^^^^^^^^^^ + | ~~~~~~~~~~~~~~~~~~~~~~~~~ error[E0004]: non-exhaustive patterns: `&&mut &B` and `&&mut &C` not covered --> $DIR/non-exhaustive-defined-here.rs:48:11 @@ -198,7 +198,7 @@ LL | let Opt::Some(ref _x) = e; help: you might want to use `if let` to ignore the variant that isn't matched | LL | if let Opt::Some(ref _x) = e { /* */ } - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: aborting due to 8 previous errors |
