about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2016-10-23 17:22:06 -0700
committerEsteban Küber <esteban@kuber.com.ar>2016-11-22 13:42:36 -0800
commiteb53ca3aad616069cb8f6f8fff71c27e9ba9640c (patch)
tree8b305f44c0527577d57be9cc693465dd3b74f7e5 /src/test/incremental/thinlto
parentfb122199aac1fd4f9a3c133e25791a9fcb2a6b83 (diff)
downloadrust-eb53ca3aad616069cb8f6f8fff71c27e9ba9640c.tar.gz
rust-eb53ca3aad616069cb8f6f8fff71c27e9ba9640c.zip
Show multiline spans in full if short enough
When dealing with multiline spans that span few lines, show the complete
span instead of restricting to the first character of the first line.

For example, instead of:

```
% ./rustc foo.rs
error[E0277]: the trait bound `{integer}: std::ops::Add<()>` is not satisfied
  --> foo.rs:13:9
   |
13 |    foo(1 + bar(x,
   |        ^ trait `{integer}: std::ops::Add<()>` not satisfied
   |
```

show

```
% ./rustc foo.rs
error[E0277]: the trait bound `{integer}: std::ops::Add<()>` is not satisfied
  --> foo.rs:13:9
   |
13 |      foo(1 + bar(x,
   |  ________^ starting here...
14 | |            y),
   | |_____________^ ...ending here: trait `{integer}: std::ops::Add<()>` not satisfied
   |
```
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions