diff --git a/rust-version b/rust-version index 45abe7e8c65..86a09bfa57b 100644 --- a/rust-version +++ b/rust-version @@ -1 +1 @@ -0ed9c64c3e63acac9bd77abce62501696c390450 +6077b7cda466afa2b75a62b232ab46dbeb148bcb diff --git a/src/helpers.rs b/src/helpers.rs index 29bf92af3fa..d0b0852d010 100644 --- a/src/helpers.rs +++ b/src/helpers.rs @@ -259,7 +259,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx let mir = this.load_mir(f.def, None)?; let dest = match dest { Some(dest) => *dest, - None => MPlaceTy::dangling(this.layout_of(mir.return_ty())?).into(), + None => MPlaceTy::fake_alloc_zst(this.layout_of(mir.return_ty())?).into(), }; this.push_stack_frame(f, mir, &dest, stack_pop)?;