-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-trait-systemArea: Trait systemArea: Trait systemI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Milestone
Description
I accidentally had something like stdout() as io::Writer
and got an ICE, but it also happens with trivial traits/trait impls like this:
trait Foo {}
impl (): Foo {}
fn main() {
let _a = () as Foo as Foo;
}
rustc
just errors out with an unexpected failure, and says
rust: task failed at 'get_vtable: expected a static origin', /home/ben/code/repos/rust/src/rustc/middle/trans/meth.rs:507
Metadata
Metadata
Assignees
Labels
A-trait-systemArea: Trait systemArea: Trait systemI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️