rust/src/test/ui/compare-method
Esteban Küber eb53ca3aad 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
   |
```
2016-11-22 13:42:36 -08:00
..
proj-outlives-region.rs compare-method lint 2016-11-01 14:08:56 -04:00
proj-outlives-region.stderr move compile-fail tests to ui tests 2016-11-01 14:08:56 -04:00
proj-outlives-region.stdout compare-method lint 2016-11-01 14:08:56 -04:00
region-extra-2.rs move compile-fail tests to ui tests 2016-11-01 14:08:56 -04:00
region-extra-2.stderr Show multiline spans in full if short enough 2016-11-22 13:42:36 -08:00
region-extra.rs move compile-fail tests to ui tests 2016-11-01 14:08:56 -04:00
region-extra.stderr move compile-fail tests to ui tests 2016-11-01 14:08:56 -04:00
region-extra.stdout move compile-fail tests to ui tests 2016-11-01 14:08:56 -04:00
region-unrelated.rs compare-method lint 2016-11-01 14:08:56 -04:00
region-unrelated.stderr move compile-fail tests to ui tests 2016-11-01 14:08:56 -04:00
region-unrelated.stdout compare-method lint 2016-11-01 14:08:56 -04:00
reordered-type-param.rs move compile-fail tests to ui tests 2016-11-01 14:08:56 -04:00
reordered-type-param.stderr move compile-fail tests to ui tests 2016-11-01 14:08:56 -04:00
trait-bound-on-type-parameter.rs move compile-fail tests to ui tests 2016-11-01 14:08:56 -04:00
trait-bound-on-type-parameter.stderr move compile-fail tests to ui tests 2016-11-01 14:08:56 -04:00
traits-misc-mismatch-1.rs move compile-fail tests to ui tests 2016-11-01 14:08:56 -04:00
traits-misc-mismatch-1.stderr move compile-fail tests to ui tests 2016-11-01 14:08:56 -04:00
traits-misc-mismatch-2.rs move compile-fail tests to ui tests 2016-11-01 14:08:56 -04:00
traits-misc-mismatch-2.stderr Show multiline spans in full if short enough 2016-11-22 13:42:36 -08:00