use rustc_middle::ty::{
self,
layout::{HasParamEnv, LayoutOf},
+ Ty,
};
use rustc_target::abi::{Abi, Size};
/// A key function: determine the permissions to grant at a retag for the given kind of
/// reference/pointer.
fn from_ref_ty<'tcx>(
- ty: ty::Ty<'tcx>,
+ ty: Ty<'tcx>,
kind: RetagKind,
cx: &crate::MiriInterpCx<'_, 'tcx>,
) -> Self {
RetagKind::FnEntry => unreachable!(),
RetagKind::Raw | RetagKind::Default => RetagCause::Normal,
};
- this.sb_retag_reference(&val, new_perm, retag_cause)
+ this.sb_retag_reference(val, new_perm, retag_cause)
}
fn sb_retag_place_contents(