diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2017-01-20 18:57:21 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2017-01-20 21:15:24 -0800 |
| commit | 469ecef422aab0364f87205f39f2830cbdfe6ab1 (patch) | |
| tree | 39050c81679d1f367fde29e9fc247c64d7b4963e /src/libstd/sys_common/gnu | |
| parent | f0b42075981d9914c39e848377a3e12f0adf37d7 (diff) | |
| download | rust-469ecef422aab0364f87205f39f2830cbdfe6ab1.tar.gz rust-469ecef422aab0364f87205f39f2830cbdfe6ab1.zip | |
Fix multiple labels when some don't have message
The diagnostic emitter now accounts for labels with no text message,
presenting the underline on its own, without drawing the line for the
non existing message below it. Go from
```
error: foo
--> test.rs:3:6
|
3 | a { b { c } d }
| ----^^^^^^^----
| | |
| | `b` is a good letter
|
```
to
```
error: foo
--> test.rs:3:6
|
3 | a { b { c } d }
| ----^^^^^^^----
| |
| `b` is a good letter
```
and from
```
error: foo
--> test.rs:3:6
|
3 | a { b { c } d }
| ^^^^-------^^^^
| | |
| |
| `a` is a good letter
```
to
```
error: foo
--> test.rs:3:6
|
3 | a { b { c } d }
| ^^^^-------^^^^ `a` is a good letter
```
Diffstat (limited to 'src/libstd/sys_common/gnu')
0 files changed, 0 insertions, 0 deletions
