about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorMark Simulacrum <mark.simulacrum@gmail.com>2017-07-12 06:58:44 -0600
committerGitHub <noreply@github.com>2017-07-12 06:58:44 -0600
commit1a7dc0a2cb8ddf8c767dafb288069ceed7ab92e3 (patch)
tree783b7336358b6cf8a25ae4db507175e91a8fbd5d /src/test/debuginfo/enum-thinlto.rs
parent0926f9b72fc3deed0e9d06261b08646425a158f8 (diff)
parent05d352613226e890b7017b84edbc5b0ea4d6d147 (diff)
downloadrust-1a7dc0a2cb8ddf8c767dafb288069ceed7ab92e3.tar.gz
rust-1a7dc0a2cb8ddf8c767dafb288069ceed7ab92e3.zip
Rollup merge of #43000 - estebank:on-unimplemented-path, r=arielb1
`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