Uh oh!
There was an error while loading. Please reload this page.
rustc_on_unimplemented supports referring to trait - #43000
Conversation
rust-highfive
commented
Jul 1, 2017
r? @pnkfelix (rust_highfive has picked a reviewer for you, use r? to override) |
estebank
commented
Jul 1, 2017
Originally found that this would be a nice addition when working on #43001, to make sure that the path of the trait is always correct on the error message. |
Mark-Simulacrum
commented
Jul 2, 2017
|
1eb6669 to
a43654cCompareaidanhs
commented
Jul 5, 2017
@estebank looks like the tidy failure is still waiting on you? Might be worth getting it fixed before review in case it reveals any other test failures. |
aidanhs
commented
Jul 5, 2017
Oh wait, you just pushed a change :) |
aidanhs
commented
Jul 5, 2017
Some other test failures have been revealed |
Add support to `rustc_on_unimplemented` to reference the full path of
the annotated trait. For the following code:
```rust
pub mod Bar {
#[rustc_on_unimplemented = "test error `{Self}` with `{Bar}` `{Baz}` `{Quux}` in `{Foo}`"]
pub trait Foo<Bar, Baz, Quux> {}
}
```
the error message will be:
```
test error `std::string::String` with `u8` `_` `u32` in `Bar::Foo`
```a43654c to
05d3526Compareestebank
commented
Jul 6, 2017
r? @aturon |
r? @arielb1 I'll try to review this later today. |
arielb1
commented
Jul 11, 2017
I don't think |
arielb1
commented
Jul 11, 2017
LGTM @bors r+ |
bors
commented
Jul 11, 2017
📌 Commit 05d3526 has been approved by |
arielb1
commented
Jul 11, 2017
@bors rollup |
…rielb1
`rustc_on_unimplemented` supports referring to trait
Add support to `rustc_on_unimplemented` to reference the full path of
the annotated trait. For the following code:
```rust
pub mod Bar {
#[rustc_on_unimplemented = "test error `{Self}` with `{Bar}` `{Baz}` `{Quux}` in `{Foo}`"]
pub trait Foo<Bar, Baz, Quux> {}
}
```
the error message will be:
```
test error `std::string::String` with `u8` `_` `u32` in `Bar::Foo`
```
Add support to
rustc_on_unimplementedto reference the full path ofthe annotated trait. For the following code:
the error message will be: