We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d1ff36 commit dff1f9fCopy full SHA for dff1f9f
compiler/rustc_const_eval/src/interpret/place.rs
@@ -313,6 +313,11 @@ where
313
) -> InterpResult<'tcx, MPlaceTy<'tcx, M::PointerTag>> {
314
let val = self.read_immediate(src)?;
315
trace!("deref to {} on {:?}", val.layout.ty, *val);
316
+
317
+ if val.layout.ty.is_box() {
318
+ bug!("dereferencing {:?}", val.layout.ty);
319
+ }
320
321
let mplace = self.ref_to_mplace(&val)?;
322
self.check_mplace_access(mplace, CheckInAllocMsg::DerefTest)?;
323
Ok(mplace)
0 commit comments