about summary refs log tree commit diff
path: root/src/libstd/sys_common/gnu
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2017-01-20 18:57:21 -0800
committerEsteban Küber <esteban@kuber.com.ar>2017-01-20 21:15:24 -0800
commit469ecef422aab0364f87205f39f2830cbdfe6ab1 (patch)
tree39050c81679d1f367fde29e9fc247c64d7b4963e /src/libstd/sys_common/gnu
parentf0b42075981d9914c39e848377a3e12f0adf37d7 (diff)
downloadrust-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