Account for multiple multiline spans with empty padding
Instead of ``` LL | fn oom( | __^ | | _| | || LL | || ) { | ||_- LL | | } | |__^ ``` emit ``` LL | // fn oom( LL | || ) { | ||_- LL | | } | |__^ ```
This commit is contained in:
parent
24444945ec
commit
315bb10405
@ -3,8 +3,7 @@ error: an async construct yields a type which is itself awaitable
|
||||
|
|
||||
LL | let _h = async {
|
||||
| _____________________-
|
||||
LL | | async {
|
||||
| | _________^
|
||||
LL | |/ async {
|
||||
LL | || 3
|
||||
LL | || }
|
||||
| ||_________^ awaitable value not awaited
|
||||
@ -37,8 +36,7 @@ error: an async construct yields a type which is itself awaitable
|
||||
|
|
||||
LL | let _j = async || {
|
||||
| ________________________-
|
||||
LL | | async {
|
||||
| | _________^
|
||||
LL | |/ async {
|
||||
LL | || 3
|
||||
LL | || }
|
||||
| ||_________^ awaitable value not awaited
|
||||
|
@ -19,10 +19,7 @@ LL | x.field.map(|value| if value > 0 { do_nothing(value); do_nothing(value)
|
||||
error: called `map(f)` on an `Result` value where `f` is a closure that returns the unit type `()`
|
||||
--> $DIR/result_map_unit_fn_unfixable.rs:29:5
|
||||
|
|
||||
LL | x.field.map(|value| {
|
||||
| ______^
|
||||
| | _____|
|
||||
| ||
|
||||
LL | // x.field.map(|value| {
|
||||
LL | || do_nothing(value);
|
||||
LL | || do_nothing(value)
|
||||
LL | || });
|
||||
|
Loading…
Reference in New Issue
Block a user