We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdf8bdb commit 5344017Copy full SHA for 5344017
compiler/rustc_mir_transform/src/add_retag.rs
@@ -28,7 +28,6 @@ fn may_contain_reference<'tcx>(ty: Ty<'tcx>, depth: u32, tcx: TyCtxt<'tcx>) -> b
28
// References and Boxes (`noalias` sources)
29
ty::Ref(..) => true,
30
ty::Adt(..) if ty.is_box() => true,
31
- ty::Adt(adt, _) if tcx.is_lang_item(adt.did(), LangItem::PtrUnique) => true,
32
// Compound types: recurse
33
ty::Array(ty, _) | ty::Slice(ty) => {
34
// This does not branch so we keep the depth the same.
0 commit comments