Skip to content

Commit c568f32

Browse files
committed
Auto merge of #2060 - RalfJung:rustup, r=RalfJung
rustup Cc rust-lang/rust#95844
2 parents be72564 + d2cb11c commit c568f32

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1a4b9a85634c17a60e8802307510c300a35a4b9b
1+
fbdb10f9fabe47eb763cb4b52b5721740cc63783

src/operator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl<'mir, 'tcx> EvalContextExt<'tcx> for super::MiriEvalContext<'mir, 'tcx> {
6161
let pointee_ty =
6262
left.layout.ty.builtin_deref(true).expect("Offset called on non-ptr type").ty;
6363
let ptr = self.ptr_offset_inbounds(
64-
self.scalar_to_ptr(left.to_scalar()?),
64+
self.scalar_to_ptr(left.to_scalar()?)?,
6565
pointee_ty,
6666
right.to_scalar()?.to_machine_isize(self)?,
6767
)?;

src/shims/panic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
146146

147147
// Push the `catch_fn` stackframe.
148148
let f_instance =
149-
this.get_ptr_fn(this.scalar_to_ptr(catch_unwind.catch_fn))?.as_instance()?;
149+
this.get_ptr_fn(this.scalar_to_ptr(catch_unwind.catch_fn)?)?.as_instance()?;
150150
trace!("catch_fn: {:?}", f_instance);
151151
let ret_place = MPlaceTy::dangling(this.machine.layouts.unit).into();
152152
this.call_function(

src/shims/posix/linux/sync.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ pub fn futex<'tcx>(
121121
// The API requires `addr` to be a 4-byte aligned pointer, and will
122122
// use the 4 bytes at the given address as an (atomic) i32.
123123
this.check_ptr_access_align(
124-
this.scalar_to_ptr(addr_scalar),
124+
this.scalar_to_ptr(addr_scalar)?,
125125
Size::from_bytes(4),
126126
Align::from_bytes(4).unwrap(),
127127
CheckInAllocMsg::MemoryAccessTest,

src/shims/tls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ trait EvalContextPrivExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
249249
"p_thread_callback",
250250
])?;
251251
let thread_callback =
252-
this.get_ptr_fn(this.scalar_to_ptr(thread_callback))?.as_instance()?;
252+
this.get_ptr_fn(this.scalar_to_ptr(thread_callback)?)?.as_instance()?;
253253

254254
// The signature of this function is `unsafe extern "system" fn(h: c::LPVOID, dwReason: c::DWORD, pv: c::LPVOID)`.
255255
let reason = this.eval_path_scalar(&["std", "sys", "windows", "c", "DLL_THREAD_DETACH"])?;

0 commit comments

Comments
 (0)