Function may_contain_reference

Source
fn may_contain_reference<'tcx>(
    ty: Ty<'tcx>,
    depth: u32,
    tcx: TyCtxt<'tcx>,
) -> bool
Expand description

Determine whether this type may contain a reference (or box), and thus needs retagging. We will only recurse depth times into Tuples/ADTs to bound the cost of this.