Skip to content

Commit 499eb5d

Browse files
committed
More fixes for rustc changes
1 parent d87e2da commit 499eb5d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/librustc_mir/transform/const_prop.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use crate::interpret::{
3030
self, InterpCx, ScalarMaybeUndef, Immediate, OpTy,
3131
StackPopCleanup, LocalValue, LocalState, AllocId, Frame,
3232
Allocation, MemoryKind, ImmTy, Pointer, Memory, PlaceTy,
33-
Operand as InterpOperand,
33+
StackPopInfo, Operand as InterpOperand,
3434
};
3535
use crate::const_eval::error_to_const_error;
3636
use crate::transform::{MirPass, MirSource};
@@ -143,6 +143,7 @@ impl<'mir, 'tcx> interpret::Machine<'mir, 'tcx> for ConstPropMachine {
143143
_args: &[OpTy<'tcx>],
144144
_dest: Option<PlaceTy<'tcx>>,
145145
_ret: Option<BasicBlock>,
146+
_unwind: Option<BasicBlock>,
146147
) -> InterpResult<'tcx, Option<&'mir Body<'tcx>>> {
147148
Ok(None)
148149
}
@@ -162,7 +163,7 @@ impl<'mir, 'tcx> interpret::Machine<'mir, 'tcx> for ConstPropMachine {
162163
_span: Span,
163164
_instance: ty::Instance<'tcx>,
164165
_args: &[OpTy<'tcx>],
165-
_dest: PlaceTy<'tcx>,
166+
_dest: Option<PlaceTy<'tcx>>,
166167
) -> InterpResult<'tcx> {
167168
throw_unsup_format!("calling intrinsics isn't supported in ConstProp");
168169
}
@@ -254,8 +255,11 @@ impl<'mir, 'tcx> interpret::Machine<'mir, 'tcx> for ConstPropMachine {
254255

255256
/// Called immediately before a stack frame gets popped.
256257
#[inline(always)]
257-
fn stack_pop(_ecx: &mut InterpCx<'mir, 'tcx, Self>, _extra: ()) -> InterpResult<'tcx> {
258-
Ok(())
258+
fn stack_pop(
259+
_ecx: &mut InterpCx<'mir, 'tcx, Self>,
260+
_extra: ()
261+
) -> InterpResult<'tcx, StackPopInfo> {
262+
Ok(StackPopInfo::Normal)
259263
}
260264
}
261265

0 commit comments

Comments
 (0)