about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2017-06-30 17:06:51 -0700
committerEsteban Küber <esteban@kuber.com.ar>2017-07-05 16:46:59 -0700
commit05d352613226e890b7017b84edbc5b0ea4d6d147 (patch)
tree9a226e4195fb764cf40ec694238bcfec62336739 /src/test/debuginfo/enum-thinlto.rs
parent3610a70ce488953c5b0379fece70f2baad30a825 (diff)
downloadrust-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