about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-01-15 05:48:34 +0000
committerbors <bors@rust-lang.org>2017-01-15 05:48:34 +0000
commit4f0508af90cfe4fac018b1a464ed94a828811600 (patch)
treed795bef67c0d54fe193fca200ca6f593842d51dd /src/libstd
parentbf6d7b665b85506dac663945229f00a406904fa5 (diff)
parentd04c027e9333d632a9ee0dcfbdf0d79dfddf0318 (diff)
downloadrust-4f0508af90cfe4fac018b1a464ed94a828811600.tar.gz
rust-4f0508af90cfe4fac018b1a464ed94a828811600.zip
Auto merge of #39040 - estebank:relevant-impl-multiline, r=nikomatsakis
Use multiline Diagnostic for "relevant impl" list

Provide the following output:

```
error[E0277]: the trait bound `Bar: Foo<usize>` is not satisfied
  --> $DIR/issue-21659-show-relevant-trait-impls-2.rs:38:8
   |
38 |     f1.foo(1usize);
   |        ^^^ the trait `Foo<usize>` is not implemented for `Bar`
   |
   = help: the following implementations were found:
             <Bar as Foo<i8>>
             <Bar as Foo<i16>>
             <Bar as Foo<i32>>
             <Bar as Foo<u8>>
           and 2 others

error: aborting due to previous error
```

instead of

```
error[E0277]: the trait bound `Bar: Foo<usize>` is not satisfied
  --> $DIR/issue-21659-show-relevant-trait-impls-2.rs:38:8
   |
38 |     f1.foo(1usize);
   |        ^^^ the trait `Foo<usize>` is not implemented for `Bar`
   |
   = help: the following implementations were found:
   = help:   <Bar as Foo<i8>>
   = help:   <Bar as Foo<i16>>
   = help:   <Bar as Foo<i32>>
   = help:   <Bar as Foo<u8>>
   = help: and 2 others

error: aborting due to previous error
```
Diffstat (limited to 'src/libstd')
0 files changed, 0 insertions, 0 deletions