Account for identity substituted items in symbol mangling
This commit is contained in:
parent
b6b8361bce
commit
39daadc76e
6 changed files with 135 additions and 39 deletions
17
tests/coverage/generic-unused-impl.coverage
Normal file
17
tests/coverage/generic-unused-impl.coverage
Normal file
|
@ -0,0 +1,17 @@
|
|||
LL| |trait Foo {
|
||||
LL| | type Assoc;
|
||||
LL| |
|
||||
LL| | fn from(s: Self::Assoc) -> Self;
|
||||
LL| |}
|
||||
LL| |
|
||||
LL| |struct W<T>(T);
|
||||
LL| |
|
||||
LL| |impl<T: Foo> From<[T::Assoc; 1]> for W<T> {
|
||||
LL| 0| fn from(from: [T::Assoc; 1]) -> Self {
|
||||
LL| 0| let [item] = from;
|
||||
LL| 0| W(Foo::from(item))
|
||||
LL| 0| }
|
||||
LL| |}
|
||||
LL| |
|
||||
LL| 1|fn main() {}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue