rustc_lint::dangling

Function owns_allocation

Source
fn owns_allocation(tcx: TyCtxt<'_>, ty: Ty<'_>) -> bool