fn find_param_in_ty<'tcx>(
    ty: GenericArg<'tcx>,
    param_to_point_at: GenericArg<'tcx>
) -> bool
Expand description

Traverses the given ty (either a ty::Ty or a ty::GenericArg) and searches for references to the given param_to_point_at. Returns true if it finds any use of the param.