mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 05:26:23 +03:00
rustup
This commit is contained in:
+3
-3
@@ -4,7 +4,7 @@
|
||||
|
||||
use rustc::mir::interpret::{EvalResult, Scalar, ScalarMaybeUndef};
|
||||
use rustc_mir::interpret::{
|
||||
PlaceExtra, PlaceTy, EvalContext, OpTy, Value
|
||||
PlaceTy, EvalContext, OpTy, Value
|
||||
};
|
||||
|
||||
use super::{ScalarExt, FalibleScalarExt, OperatorEvalContextExt};
|
||||
@@ -293,7 +293,7 @@ fn call_intrinsic(
|
||||
_ => {
|
||||
// Do it in memory
|
||||
let mplace = self.force_allocation(dest)?;
|
||||
assert_eq!(mplace.extra, PlaceExtra::None);
|
||||
assert!(mplace.extra.is_none());
|
||||
self.memory.write_repeat(mplace.ptr, 0, dest.layout.size)?;
|
||||
}
|
||||
}
|
||||
@@ -550,7 +550,7 @@ fn call_intrinsic(
|
||||
_ => {
|
||||
// Do it in memory
|
||||
let mplace = self.force_allocation(dest)?;
|
||||
assert_eq!(mplace.extra, PlaceExtra::None);
|
||||
assert!(mplace.extra.is_none());
|
||||
self.memory.mark_definedness(mplace.ptr.to_ptr()?, dest.layout.size, false)?;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -315,7 +315,7 @@ fn access_static_mut<'a, 'm>(
|
||||
) -> EvalResult<'tcx, &'m mut Allocation> {
|
||||
// Make a copy, use that.
|
||||
mem.deep_copy_static(id, MiriMemoryKind::MutStatic.into())?;
|
||||
mem.get_mut(id) // this is recursive, but now we know that `id` is in `alloc_map`
|
||||
mem.get_mut(id) // this is recursive, but now we know that `id` is in `alloc_map` now
|
||||
}
|
||||
|
||||
fn box_alloc<'a>(
|
||||
|
||||
Reference in New Issue
Block a user