Skip to content

Commit 0339d4e

Browse files
committed
rename needs_infer to has_infer
1 parent 331c547 commit 0339d4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_utils/src/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ pub fn implements_trait_with_env<'tcx>(
226226
ty_params: impl IntoIterator<Item = Option<GenericArg<'tcx>>>,
227227
) -> bool {
228228
// Clippy shouldn't have infer types
229-
assert!(!ty.needs_infer());
229+
assert!(!ty.has_infer());
230230

231231
let ty = tcx.erase_regions(ty);
232232
if ty.has_escaping_bound_vars() {

0 commit comments

Comments
 (0)