1
Fork 0

Undo questionable changes

This commit is contained in:
Maybe Waffle 2023-01-12 18:50:32 +00:00
parent 66751ea73e
commit 98f30e833a
4 changed files with 25 additions and 24 deletions

View file

@ -535,7 +535,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
use rustc_middle::mir::Operand::*;
let op = match mir_op {
// FIXME: do some more logic on `move` to invalidate the old location
&(Copy(place) | Move(place)) => self.eval_place_to_op(place, layout)?,
&Copy(place) | &Move(place) => self.eval_place_to_op(place, layout)?,
Constant(constant) => {
let c =