diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2017-06-30 17:06:51 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2017-07-05 16:46:59 -0700 |
| commit | 05d352613226e890b7017b84edbc5b0ea4d6d147 (patch) | |
| tree | 9a226e4195fb764cf40ec694238bcfec62336739 /src/test/debuginfo/enum-thinlto.rs | |
| parent | 3610a70ce488953c5b0379fece70f2baad30a825 (diff) | |
| download | rust-05d352613226e890b7017b84edbc5b0ea4d6d147.tar.gz rust-05d352613226e890b7017b84edbc5b0ea4d6d147.zip | |
`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`
```
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
