rename needs_infer to has_infer

This commit is contained in:
Boxy 2023-04-27 08:34:11 +01:00
parent 331c5471d7
commit 0339d4e982

View file

@ -226,7 +226,7 @@ pub fn implements_trait_with_env<'tcx>(
ty_params: impl IntoIterator<Item = Option<GenericArg<'tcx>>>, ty_params: impl IntoIterator<Item = Option<GenericArg<'tcx>>>,
) -> bool { ) -> bool {
// Clippy shouldn't have infer types // Clippy shouldn't have infer types
assert!(!ty.needs_infer()); assert!(!ty.has_infer());
let ty = tcx.erase_regions(ty); let ty = tcx.erase_regions(ty);
if ty.has_escaping_bound_vars() { if ty.has_escaping_bound_vars() {