rename needs_infer to has_infer
This commit is contained in:
parent
e3ccd4b9a5
commit
f04b8fe0af
34 changed files with 59 additions and 58 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue