The ICE fix appears to be unsound, causing a miscompilation involving
`dyn Trait` and `async {}` which induces segfaults in safe Rust code.
As the patch only hid an ICE, it does not seem worth the risk.
This reverts commit 8afd63610b, reversing
changes made to 19122c03c7.
10 lines
184 B
Rust
10 lines
184 B
Rust
//@ known-bug: #137190
|
|
trait Supertrait {
|
|
fn method(&self) {}
|
|
}
|
|
|
|
trait Trait: Supertrait {}
|
|
|
|
impl Trait for () {}
|
|
|
|
const _: &dyn Supertrait = &() as &dyn Trait as &dyn Supertrait;
|