]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/miri/src/borrow_tracker/stacked_borrows/mod.rs
Auto merge of #106139 - cjgillot:mir-inline-location, r=eholk
[rust.git] / src / tools / miri / src / borrow_tracker / stacked_borrows / mod.rs
index ffbc00864022f4c642d6d9ec6c41f75628d874e4..bcdf2e751790e5bfdb385c661e344a3deace216b 100644 (file)
@@ -14,6 +14,7 @@
 use rustc_middle::ty::{
     self,
     layout::{HasParamEnv, LayoutOf},
+    Ty,
 };
 use rustc_target::abi::{Abi, Size};
 
@@ -64,7 +65,7 @@ impl NewPermission {
     /// 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 {
@@ -864,7 +865,7 @@ fn sb_retag_ptr_value(
             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(