Function clippy_utils::ty::contains_adt_constructor
source · pub fn contains_adt_constructor<'tcx>(ty: Ty<'tcx>, adt: AdtDef<'tcx>) -> bool
Expand description
Walks into ty
and returns true
if any inner type is an instance of the given adt
constructor.