rust/src/librustc_errors
Esteban Küber cc07c357e4 Reduce visual clutter of multiline start when possible
When a span starts on a line with nothing but whitespace to the left,
and there are no other annotations in that line, simplify the visual
representation of the span.

Go from:

```rust
error[E0072]: recursive type `A` has infinite size
 --> file2.rs:1:1
  |
1 |   struct A {
  |  _^ starting here...
2 | |     a: A,
3 | | }
  | |_^ ...ending here: recursive type has infinite size
  |
```

To:

```rust
error[E0072]: recursive type `A` has infinite size
 --> file2.rs:1:1
  |
1 | / struct A {
2 | |     a: A,
3 | | }
  | |_^ recursive type has infinite size
```

Remove `starting here...`/`...ending here` labels from all multiline
diagnostics.
2017-04-20 17:31:20 -07:00
..
Cargo.toml store typeck lints in the TypeckTables 2017-02-02 20:38:16 -05:00
diagnostic.rs Highlight and simplify mismatched types 2017-04-11 15:45:00 -07:00
diagnostic_builder.rs Highlight and simplify mismatched types 2017-04-11 15:45:00 -07:00
emitter.rs Reduce visual clutter of multiline start when possible 2017-04-20 17:31:20 -07:00
lib.rs Highlight and simplify mismatched types 2017-04-11 15:45:00 -07:00
lock.rs run rustfmt on librustc_errors folder 2016-10-18 23:13:02 +05:30
registry.rs run rustfmt on librustc_errors folder 2016-10-18 23:13:02 +05:30
snippet.rs Reduce visual clutter of multiline start when possible 2017-04-20 17:31:20 -07:00
styled_buffer.rs run rustfmt on librustc_errors folder 2016-10-18 23:13:02 +05:30