make sure miri ices when dereferencing a box
This commit is contained in:
parent
1d1ff36214
commit
dff1f9f6bb
1 changed files with 5 additions and 0 deletions
|
@ -313,6 +313,11 @@ where
|
|||
) -> InterpResult<'tcx, MPlaceTy<'tcx, M::PointerTag>> {
|
||||
let val = self.read_immediate(src)?;
|
||||
trace!("deref to {} on {:?}", val.layout.ty, *val);
|
||||
|
||||
if val.layout.ty.is_box() {
|
||||
bug!("dereferencing {:?}", val.layout.ty);
|
||||
}
|
||||
|
||||
let mplace = self.ref_to_mplace(&val)?;
|
||||
self.check_mplace_access(mplace, CheckInAllocMsg::DerefTest)?;
|
||||
Ok(mplace)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue