rename needs_infer
to has_infer
This commit is contained in:
parent
331c5471d7
commit
0339d4e982
@ -226,7 +226,7 @@ pub fn implements_trait_with_env<'tcx>(
|
||||
ty_params: impl IntoIterator<Item = Option<GenericArg<'tcx>>>,
|
||||
) -> bool {
|
||||
// Clippy shouldn't have infer types
|
||||
assert!(!ty.needs_infer());
|
||||
assert!(!ty.has_infer());
|
||||
|
||||
let ty = tcx.erase_regions(ty);
|
||||
if ty.has_escaping_bound_vars() {
|
||||
|
Loading…
Reference in New Issue
Block a user