about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-07-06 22:22:21 +0000
committerbors <bors@rust-lang.org>2017-07-06 22:22:21 +0000
commitd2ebb12a1d6f6599f9171a65a2160e523b53ccdf (patch)
tree38e1d25905b9a0e8355da901cf1b6a7040c34b76 /src/rustllvm/PassWrapper.cpp
parent696412de7e4e119f8536686c643621115b90c775 (diff)
parent697c85a4f15b8dd560fb1f78129f5bfdd4baf1f4 (diff)
downloadrust-d2ebb12a1d6f6599f9171a65a2160e523b53ccdf.tar.gz
rust-d2ebb12a1d6f6599f9171a65a2160e523b53ccdf.zip
Auto merge of #42904 - estebank:number-suggestions, r=nikomatsakis
Make suggestion include the line number

When there're more than one suggestions in the same diagnostic, they are
displayed in their own block, instead of inline. In order to reduce
confusion, those blocks now display the line number.

New output:

```
error[E0308]: mismatched types
  --> ../../src/test/ui/block-result/unexpected-return-on-unit.rs:19:5
   |
19 |     foo()
   |     ^^^^^ expected (), found usize
   |
   = note: expected type `()`
              found type `usize`
help: did you mean to add a semicolon here?
   |
19 |     foo();
   |          ^
help: possibly return type missing here?
   |
18 | fn bar() -> usize {
   |          ^^^^^^^^

error: aborting due to previous error(s)
```

Fix #39152.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions