mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
rename needs_infer
to has_infer
This commit is contained in:
parent
331c5471d7
commit
0339d4e982
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue