forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#135261 - compiler-errors:coverage-has-ident…
…ity-substs, r=oli-obk Account for identity substituted items in symbol mangling See the inline comment. r? oli-obk Fixes rust-lang#135235
- Loading branch information
Showing
6 changed files
with
137 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Function name: <generic_unused_impl::W<_> as core::convert::From<[<_ as generic_unused_impl::Foo>::Assoc; 1]>>::from (unused) | ||
Raw bytes (9): 0x[01, 01, 00, 01, 00, 0b, 05, 03, 06] | ||
Number of files: 1 | ||
- file 0 => global file 1 | ||
Number of expressions: 0 | ||
Number of file 0 mappings: 1 | ||
- Code(Zero) at (prev + 11, 5) to (start + 3, 6) | ||
Highest counter ID seen: (none) | ||
|
||
Function name: generic_unused_impl::main | ||
Raw bytes (9): 0x[01, 01, 00, 01, 01, 11, 01, 00, 0d] | ||
Number of files: 1 | ||
- file 0 => global file 1 | ||
Number of expressions: 0 | ||
Number of file 0 mappings: 1 | ||
- Code(Counter(0)) at (prev + 17, 1) to (start + 0, 13) | ||
Highest counter ID seen: c0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
LL| |// Regression test for #135235. | ||
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() {} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Regression test for #135235. | ||
trait Foo { | ||
type Assoc; | ||
|
||
fn from(s: Self::Assoc) -> Self; | ||
} | ||
|
||
struct W<T>(T); | ||
|
||
impl<T: Foo> From<[T::Assoc; 1]> for W<T> { | ||
fn from(from: [T::Assoc; 1]) -> Self { | ||
let [item] = from; | ||
W(Foo::from(item)) | ||
} | ||
} | ||
|
||
fn main() {} |