fn find_raw_ptr<'tcx>(
tcx: TyCtxt<'tcx>,
ty: Ty<'tcx>,
impl_def_id: DefId,
is_sync: bool,
) -> ContainsExpand description
Structurally check whether ty (transitively) contains a raw pointer.
A raw pointer may also appear as a pattern type (pattern_type!(*const T is ..)), so recurse into TyKind::Pat.