Skip to content

Commit 5344017

Browse files
committed
Remove Retag for Unique
1 parent fdf8bdb commit 5344017

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler/rustc_mir_transform/src/add_retag.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ fn may_contain_reference<'tcx>(ty: Ty<'tcx>, depth: u32, tcx: TyCtxt<'tcx>) -> b
2828
// References and Boxes (`noalias` sources)
2929
ty::Ref(..) => true,
3030
ty::Adt(..) if ty.is_box() => true,
31-
ty::Adt(adt, _) if tcx.is_lang_item(adt.did(), LangItem::PtrUnique) => true,
3231
// Compound types: recurse
3332
ty::Array(ty, _) | ty::Slice(ty) => {
3433
// This does not branch so we keep the depth the same.

0 commit comments

Comments
 (0)