We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
needs_infer
has_infer
1 parent 331c547 commit 0339d4eCopy full SHA for 0339d4e
clippy_utils/src/ty.rs
@@ -226,7 +226,7 @@ pub fn implements_trait_with_env<'tcx>(
226
ty_params: impl IntoIterator<Item = Option<GenericArg<'tcx>>>,
227
) -> bool {
228
// Clippy shouldn't have infer types
229
- assert!(!ty.needs_infer());
+ assert!(!ty.has_infer());
230
231
let ty = tcx.erase_regions(ty);
232
if ty.has_escaping_bound_vars() {
0 commit comments