Function clippy_utils::ty::contains_ty[−][src]

pub fn contains_ty<'tcx>(
    tcx: TyCtxt<'tcx>,
    ty: Ty<'tcx>,
    other_ty: Ty<'tcx>
) -> bool
Expand description

Walks into ty and returns true if any inner type is the same as other_ty