diff options
| author | Noah Lev <camelidcamel@gmail.com> | 2021-08-25 14:40:06 -0700 |
|---|---|---|
| committer | Noah Lev <camelidcamel@gmail.com> | 2021-08-25 14:40:06 -0700 |
| commit | 8a6501d28831d864a3af6adf2e0bd83a773062ed (patch) | |
| tree | 42571e65520484301d3061ff4e6724d5d08469bc /src/test/ui/pattern/pattern-error-continue.stderr | |
| parent | 19f45101e72ed6880b0fd1ebee73d74ea782c8c4 (diff) | |
| download | rust-8a6501d28831d864a3af6adf2e0bd83a773062ed.tar.gz rust-8a6501d28831d864a3af6adf2e0bd83a773062ed.zip | |
Adjust spans
* Highlight the whole pattern if it has no fields * Highlight the whole definition if it has no fields * Only highlight the pattern name if the pattern is multi-line * Determine whether a pattern is multi-line based on distance from name to last field, rather than first field
Diffstat (limited to 'src/test/ui/pattern/pattern-error-continue.stderr')
| -rw-r--r-- | src/test/ui/pattern/pattern-error-continue.stderr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/pattern/pattern-error-continue.stderr b/src/test/ui/pattern/pattern-error-continue.stderr index efc6723e9ef..c800afdae2a 100644 --- a/src/test/ui/pattern/pattern-error-continue.stderr +++ b/src/test/ui/pattern/pattern-error-continue.stderr @@ -32,7 +32,7 @@ LL | B(isize, isize), | ----- ----- tuple variant has 2 fields ... LL | A::B(_, _, _) => (), - | ---- ^ ^ ^ expected 2 fields, found 3 + | ^ ^ ^ expected 2 fields, found 3 error[E0308]: mismatched types --> $DIR/pattern-error-continue.rs:22:9 |
