rust/src/test
bors b30022a1d3 Auto merge of #37369 - estebank:multiline-span, r=nikomatsakis
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 file2.rs
error[E0277]: the trait bound `{integer}: std::ops::Add<()>` is not satisfied
  --> file2.rs:13:9
   |
13 |    foo(1 + bar(x,
   |        ^ trait `{integer}: std::ops::Add<()>` not satisfied
   |
```

show

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

The [proposal in internals](https://internals.rust-lang.org/t/proposal-for-multiline-span-comments/4242/6) outlines the reasoning behind this.
2016-11-29 12:53:47 -06:00
..
codegen Fix codegen test after change of llvm type naming scheme 2016-11-13 19:49:56 -05:00
codegen-units Fix fallout in tests. 2016-09-27 06:43:51 +00:00
compile-fail Auto merge of #37791 - petrochenkov:where, r=nikomatsakis 2016-11-28 15:15:17 -06:00
compile-fail-fulldeps rustc: rework stability to be on-demand for type-directed lookup. 2016-11-28 04:18:11 +02:00
debuginfo Move all Linux/OSX CI infastructure to Travis 2016-11-11 07:36:40 -08:00
incremental Fix SVH tests some more 2016-11-29 13:04:27 +01:00
mir-opt update tests 2016-10-04 20:43:43 +03:00
parse-fail Fix fallout in tests. 2016-11-22 01:48:14 +00:00
pretty rustc: desugar UFCS as much as possible during HIR lowering. 2016-11-28 04:18:10 +02:00
run-fail Warn when a #[should_panic] test has an unexpected message 2016-11-18 21:01:19 +10:30
run-fail-fulldeps Fix fallout in rustdoc and tests. 2016-11-21 12:16:46 +00:00
run-make Auto merge of #37908 - nrc:save-def, r=eddyb 2016-11-23 14:31:45 -06:00
run-pass Fix cross-crate associated constant evaluation 2016-11-29 13:04:27 +01:00
run-pass-fulldeps Move the myriad-closures.rs test case to run-pass-full test suite. 2016-11-22 15:16:54 -05:00
run-pass-valgrind Fix some pretty printing tests 2016-10-18 23:23:40 +03:00
rustdoc rustc: desugar use a::{b,c}; into use a::b; use a::c; in HIR. 2016-11-28 04:18:10 +02:00
ui Auto merge of #37369 - estebank:multiline-span, r=nikomatsakis 2016-11-29 12:53:47 -06:00