We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a501d96 commit 9ca82a9Copy full SHA for 9ca82a9
src/abi/mod.rs
@@ -161,6 +161,12 @@ fn make_local_place<'tcx>(
161
layout: TyAndLayout<'tcx>,
162
is_ssa: bool,
163
) -> CPlace<'tcx> {
164
+ if layout.is_unsized() {
165
+ fx.tcx.sess.span_fatal(
166
+ fx.mir.local_decls[local].source_info.span,
167
+ "unsized locals are not yet supported",
168
+ );
169
+ }
170
let place = if is_ssa {
171
if let rustc_target::abi::Abi::ScalarPair(_, _) = layout.abi {
172
CPlace::new_var_pair(fx, local, layout)
0 commit comments