Skip to content

Commit 1ba6140

Browse files
committed
rustup
1 parent 8238379 commit 1ba6140

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/intrinsic.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use rustc::ty;
44

55
use rustc::mir::interpret::{EvalResult, Scalar, ScalarMaybeUndef};
66
use rustc_mir::interpret::{
7-
PlaceExtra, PlaceTy, EvalContext, OpTy, Value
7+
PlaceTy, EvalContext, OpTy, Value
88
};
99

1010
use super::{ScalarExt, FalibleScalarExt, OperatorEvalContextExt};
@@ -293,7 +293,7 @@ impl<'a, 'mir, 'tcx> EvalContextExt<'tcx> for EvalContext<'a, 'mir, 'tcx, super:
293293
_ => {
294294
// Do it in memory
295295
let mplace = self.force_allocation(dest)?;
296-
assert_eq!(mplace.extra, PlaceExtra::None);
296+
assert!(mplace.extra.is_none());
297297
self.memory.write_repeat(mplace.ptr, 0, dest.layout.size)?;
298298
}
299299
}
@@ -550,7 +550,7 @@ impl<'a, 'mir, 'tcx> EvalContextExt<'tcx> for EvalContext<'a, 'mir, 'tcx, super:
550550
_ => {
551551
// Do it in memory
552552
let mplace = self.force_allocation(dest)?;
553-
assert_eq!(mplace.extra, PlaceExtra::None);
553+
assert!(mplace.extra.is_none());
554554
self.memory.mark_definedness(mplace.ptr.to_ptr()?, dest.layout.size, false)?;
555555
}
556556
}

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ impl<'mir, 'tcx: 'mir> Machine<'mir, 'tcx> for Evaluator<'tcx> {
315315
) -> EvalResult<'tcx, &'m mut Allocation> {
316316
// Make a copy, use that.
317317
mem.deep_copy_static(id, MiriMemoryKind::MutStatic.into())?;
318-
mem.get_mut(id) // this is recursive, but now we know that `id` is in `alloc_map`
318+
mem.get_mut(id) // this is recursive, but now we know that `id` is in `alloc_map` now
319319
}
320320

321321
fn box_alloc<'a>(

0 commit comments

Comments
 (0)