-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-type-systemArea: Type systemArea: Type systemI-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Milestone
Description
When code tries to use placement new with type that doesn't implement the proper arena methods, after printing out a reasonable diagnostic, rustc ICEs:
fn main() {
new (7) 43;
}
produces
nubs/bogus_arena.rs:2:4: 2:15 error: no `alloc()` method found for type `<VI0>`
nubs/bogus_arena.rs:2 new (7) 43;
^~~~~~~~~~~
error: internal compiler error: no type for node 4: unknown node (id=4) in fcx 7fed8813ecc0
Metadata
Metadata
Assignees
Labels
A-type-systemArea: Type systemArea: Type systemI-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.