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 5fcedf6 commit cd96988Copy full SHA for cd96988
src/value_and_place.rs
@@ -324,6 +324,12 @@ impl<'tcx> CPlace<'tcx> {
324
};
325
}
326
327
+ if layout.size.bytes() >= u64::from(u32::MAX - 16) {
328
+ fx.tcx
329
+ .sess
330
+ .fatal(&format!("values of type {} are too big to store on the stack", layout.ty));
331
+ }
332
+
333
let stack_slot = fx.bcx.create_stack_slot(StackSlotData {
334
kind: StackSlotKind::ExplicitSlot,
335
// FIXME Don't force the size to a multiple of 16 bytes once Cranelift gets a way to
0 commit comments