about summary refs log tree commit diff
path: root/src/libstd/sync
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-04-21 06:59:25 +0000
committerbors <bors@rust-lang.org>2017-04-21 06:59:25 +0000
commit4ed95009d8d5d50c4f7aee35ad89c30a2258ffa9 (patch)
tree8f4920ff93eb073f76ed49c478995f29efc209ee /src/libstd/sync
parent535ee6c7f05e29a6e94edba06b228d64f8ba74ec (diff)
parentcc07c357e421eebff58eb6948c8e1412ae7d8069 (diff)
downloadrust-4ed95009d8d5d50c4f7aee35ad89c30a2258ffa9.tar.gz
rust-4ed95009d8d5d50c4f7aee35ad89c30a2258ffa9.zip
Auto merge of #41245 - estebank:multiline-trim, r=nikomatsakis
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
```

Re: #38246.

r? @nikomatsakis CC @jonathandturner
Diffstat (limited to 'src/libstd/sync')
0 files changed, 0 insertions, 0 deletions