Closed matthiaskrgr closed 1 year ago
Unsized locals aren't implemented yet (https://github.com/bjorn3/rustc_codegen_cranelift/issues/15) as Cranelift doesn't support alloca. This shouldn't panic though. Rather it should give an error.
Just a note on the ICE here and the others: the message, lack of query stack and link to open an issue, double panic, etc are because of https://github.com/rust-lang/rust/issues/105637, a problem due to using ThinLTO on rustc_driver, where I think the wrong panic hook is called.
rustc cranelift with debug assertions from 984eab57f708e62c09b3d708033fe620130b5f39 (rustc repo)
src/test/ui/unsized-locals/reference-unsized-locals.rs