]> git.lizzy.rs Git - rust.git/commit
Account for multiple multiline spans with empty padding
authorEsteban Küber <esteban@kuber.com.ar>
Tue, 27 Dec 2022 19:03:59 +0000 (11:03 -0800)
committerEsteban Küber <esteban@kuber.com.ar>
Thu, 29 Dec 2022 17:13:40 +0000 (09:13 -0800)
commit315bb10405ec6082f46c73791bed24a134a307c7
treef7a69119717688e098a0c3eb6dc2d8b0653e0a1a
parent24444945ec96dbe0dd593ed5bda57d22464a7106
Account for multiple multiline spans with empty padding

Instead of

```
LL |    fn oom(
   |  __^
   | | _|
   | ||
LL | || ) {
   | ||_-
LL | |  }
   | |__^
```

emit

```
LL | // fn oom(
LL | || ) {
   | ||_-
LL | |  }
   | |__^
   ```
tests/ui/async_yields_async.stderr
tests/ui/result_map_unit_fn_unfixable.stderr