Skip to content

Commit ff124b0

Browse files
committed
adjust constValue::Slice to work for arbitrary slice types
1 parent e6acfef commit ff124b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shims/backtrace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
8989
}
9090

9191
this.write_immediate(
92-
Immediate::new_slice(Scalar::from_maybe_pointer(alloc.ptr(), this), len, this),
92+
Immediate::new_slice(alloc.ptr(), len, this),
9393
dest,
9494
)?;
9595
}

0 commit comments

Comments
 (0)