Skip to content

Commit 315bb10

Browse files
committed
Account for multiple multiline spans with empty padding
Instead of ``` LL | fn oom( | __^ | | _| | || LL | || ) { | ||_- LL | | } | |__^ ``` emit ``` LL | // fn oom( LL | || ) { | ||_- LL | | } | |__^ ```
1 parent 2444494 commit 315bb10

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

tests/ui/async_yields_async.stderr

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ error: an async construct yields a type which is itself awaitable
33
|
44
LL | let _h = async {
55
| _____________________-
6-
LL | | async {
7-
| | _________^
6+
LL | |/ async {
87
LL | || 3
98
LL | || }
109
| ||_________^ awaitable value not awaited
@@ -37,8 +36,7 @@ error: an async construct yields a type which is itself awaitable
3736
|
3837
LL | let _j = async || {
3938
| ________________________-
40-
LL | | async {
41-
| | _________^
39+
LL | |/ async {
4240
LL | || 3
4341
LL | || }
4442
| ||_________^ awaitable value not awaited

tests/ui/result_map_unit_fn_unfixable.stderr

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ LL | x.field.map(|value| if value > 0 { do_nothing(value); do_nothing(value)
1919
error: called `map(f)` on an `Result` value where `f` is a closure that returns the unit type `()`
2020
--> $DIR/result_map_unit_fn_unfixable.rs:29:5
2121
|
22-
LL | x.field.map(|value| {
23-
| ______^
24-
| | _____|
25-
| ||
22+
LL | // x.field.map(|value| {
2623
LL | || do_nothing(value);
2724
LL | || do_nothing(value)
2825
LL | || });

0 commit comments

Comments
 (0)