mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
rustup
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
adc65725004c8aac16392fe4052c3e347181157d
|
||||
31dd4f4acbcbdb02b0745d2136399ed664a28050
|
||||
|
||||
+2
-2
@@ -76,7 +76,7 @@ fn test_null(&self, val: Scalar<Tag>) -> InterpResult<'tcx, Option<Scalar<Tag>>>
|
||||
/// Get the `Place` for a local
|
||||
fn local_place(&mut self, local: mir::Local) -> InterpResult<'tcx, PlaceTy<'tcx, Tag>> {
|
||||
let this = self.eval_context_mut();
|
||||
let place = mir::Place { base: mir::PlaceBase::Local(local), projection: List::empty() };
|
||||
let place = mir::Place { local: local, projection: List::empty() };
|
||||
this.eval_place(&place)
|
||||
}
|
||||
|
||||
@@ -349,7 +349,7 @@ fn write_packed_immediates(
|
||||
for &imm in imms {
|
||||
this.write_immediate_to_mplace(
|
||||
*imm,
|
||||
place.offset(offset, None, imm.layout, &*this.tcx)?,
|
||||
place.offset(offset, MemPlaceMeta::None, imm.layout, &*this.tcx)?,
|
||||
)?;
|
||||
offset += imm.layout.size;
|
||||
}
|
||||
|
||||
@@ -409,7 +409,7 @@ fn call_intrinsic(
|
||||
_ => {
|
||||
// Do it in memory
|
||||
let mplace = this.force_allocation(dest)?;
|
||||
mplace.meta.unwrap_none(); // must be sized
|
||||
assert!(!mplace.layout.is_unsized());
|
||||
this.memory.write_bytes(
|
||||
mplace.ptr,
|
||||
iter::repeat(0u8).take(dest.layout.size.bytes() as usize),
|
||||
@@ -574,7 +574,7 @@ fn call_intrinsic(
|
||||
_ => {
|
||||
// Do it in memory
|
||||
let mplace = this.force_allocation(dest)?;
|
||||
mplace.meta.unwrap_none();
|
||||
assert!(!mplace.layout.is_unsized());
|
||||
let ptr = mplace.ptr.assert_ptr();
|
||||
// We know the return place is in-bounds
|
||||
this.memory.get_raw_mut(ptr.alloc_id)?.mark_definedness(
|
||||
|
||||
+1
-1
@@ -132,7 +132,7 @@ fn handle_stack_pop(
|
||||
let payload = this.machine.panic_payload.take().unwrap();
|
||||
let payload = this.ref_to_mplace(payload)?;
|
||||
let payload_data_place = payload.ptr;
|
||||
let payload_vtable_place = payload.meta.expect("Expected fat pointer");
|
||||
let payload_vtable_place = payload.meta.unwrap_meta();
|
||||
|
||||
this.write_scalar(payload_data_place, unwind_data.data_place.into())?;
|
||||
this.write_scalar(payload_vtable_place, unwind_data.vtable_place.into())?;
|
||||
|
||||
Reference in New Issue
Block a user