diff options
| author | bors <bors@rust-lang.org> | 2021-08-11 19:26:01 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-08-11 19:26:01 +0000 |
| commit | ccffcafd55e58f769d4b0efc0064bf65e76998e4 (patch) | |
| tree | 725b619b120ee18a4bada33b6f7fb4385e06d6df /src/test/ui/parser/mut-patterns.stderr | |
| parent | 362e0f55eb1f36d279e5c4a58fb0fe5f9a2c579d (diff) | |
| parent | 657caa5bf293e9d910a54dac10dc536e7c26e50b (diff) | |
Auto merge of #86532 - estebank:delete-suggestion-underline, r=petrochenkov
Make deleted code in a suggestion clearer Show suggestions that include deletions in a way similar to `diff`'s output. <img width="628" alt="" src="https://user-images.githubusercontent.com/1606434/123350316-9078e580-d50f-11eb-89b9-78431b85e23f.png"> For changes that do not have deletions, use `+` as an underline for additions and `~` as an underline for replacements. <img width="631" alt="" src="https://user-images.githubusercontent.com/1606434/123701745-1ac68f80-d817-11eb-950b-09e5afd7532f.png"> For multiline suggestions, we now use `~` in the gutter to signal replacements and `+` to signal whole line replacements/additions. <img width="834" alt="" src="https://user-images.githubusercontent.com/1606434/123701331-8eb46800-d816-11eb-9dcd-ef9098071afb.png"> In all cases we now use color to highlight the specific spans and snippets.
Diffstat (limited to 'src/test/ui/parser/mut-patterns.stderr')
| -rw-r--r-- | src/test/ui/parser/mut-patterns.stderr | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/ui/parser/mut-patterns.stderr b/src/test/ui/parser/mut-patterns.stderr index 88a77adcd31..bfa443a7f01 100644 --- a/src/test/ui/parser/mut-patterns.stderr +++ b/src/test/ui/parser/mut-patterns.stderr @@ -59,7 +59,7 @@ LL | let mut mut yield(become, await) = r#yield(0, 0); help: you can escape reserved keywords to use them as identifiers | LL | let mut mut r#yield(become, await) = r#yield(0, 0); - | ^^^^^^^ + | ~~~~~~~ error: expected identifier, found reserved keyword `become` --> $DIR/mut-patterns.rs:28:23 @@ -70,7 +70,7 @@ LL | let mut mut yield(become, await) = r#yield(0, 0); help: you can escape reserved keywords to use them as identifiers | LL | let mut mut yield(r#become, await) = r#yield(0, 0); - | ^^^^^^^^ + | ~~~~~~~~ error: expected identifier, found keyword `await` --> $DIR/mut-patterns.rs:28:31 @@ -81,7 +81,7 @@ LL | let mut mut yield(become, await) = r#yield(0, 0); help: you can escape reserved keywords to use them as identifiers | LL | let mut mut yield(become, r#await) = r#yield(0, 0); - | ^^^^^^^ + | ~~~~~~~ error: `mut` must be attached to each individual binding --> $DIR/mut-patterns.rs:28:9 |
