about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-05-02 01:04:27 +0000
committerbors <bors@rust-lang.org>2017-05-02 01:04:27 +0000
commit33535afda497e1de8a831e8270ae8099434f662b (patch)
tree17b14bd7f6ab382784b26bdf01722525d3bbdb2f /src/rustllvm/RustWrapper.cpp
parentde4bdd20f87d95d164c883dc141a2763e4df155a (diff)
parentd64af4a627532c978ed2682de0e9411aa3a83e75 (diff)
downloadrust-33535afda497e1de8a831e8270ae8099434f662b.tar.gz
rust-33535afda497e1de8a831e8270ae8099434f662b.zip
Auto merge of #40851 - oli-obk:multisugg, r=jonathandturner
Minimize single span suggestions into a label

changes

```
14 |     println!("☃{}", tup[0]);
   |                     ^^^^^^
   |
help: to access tuple elements, use tuple indexing syntax as shown
   |     println!("☃{}", tup.0);
```

into

```
14 |     println!("☃{}", tup[0]);
   |                     ^^^^^^ to access tuple elements, use `tup.0`
```

Also makes suggestions explicit in the backend in preparation of adding multiple suggestions to a single diagnostic. Currently that's already possible, but results in a full help message + modified code snippet per suggestion, and has no rate limit (might show 100+ suggestions).
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions