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>2017-04-11 04:40:31 -0700
committerEsteban Küber <esteban@kuber.com.ar>2017-04-12 01:10:48 -0700
commit439ff69d909a0add54b1ea1e093bc838693d1e4e (patch)
tree3a779dd6ae7d0fd40ad34002289b888285642c30 /src/test/incremental/thinlto
parentd616f47cd03a65fed13be2ee5527f24f6a4f7f92 (diff)
downloadrust-439ff69d909a0add54b1ea1e093bc838693d1e4e.tar.gz
rust-439ff69d909a0add54b1ea1e093bc838693d1e4e.zip
Add a way to get shorter spans until `char` for pointing at defs
```rust
error[E0072]: recursive type `X` has infinite size
  --> file.rs:10:1
   |
10 | struct X {
   | ^^^^^^^^ recursive type has infinite size
   |
   = help: insert indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `X` representable
```

vs

```rust
error[E0072]: recursive type `X` has infinite size
  --> file.rs:10:1
   |
10 |   struct X {
   |  _^ starting here...
11 | |     x: X,
12 | | }
   | |_^ ...ending here: recursive type has infinite size
   |
   = help: insert indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `X` representable
```
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions