diff options
| author | Boxy <supbscripter@gmail.com> | 2023-04-27 08:34:11 +0100 |
|---|---|---|
| committer | Boxy <supbscripter@gmail.com> | 2023-04-27 08:35:19 +0100 |
| commit | 0339d4e982e21dd29c473f945bf23a0a119648f5 (patch) | |
| tree | 4398726195c129918db3a52e86d854008aed9e7b | |
| parent | 331c5471d7fba4ac4ff69d162a62f7663bfbbf6a (diff) | |
| download | rust-0339d4e982e21dd29c473f945bf23a0a119648f5.tar.gz rust-0339d4e982e21dd29c473f945bf23a0a119648f5.zip | |
rename `needs_infer` to `has_infer`
| -rw-r--r-- | clippy_utils/src/ty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_utils/src/ty.rs b/clippy_utils/src/ty.rs index cb700126c2b..a6572011644 100644 --- a/clippy_utils/src/ty.rs +++ b/clippy_utils/src/ty.rs @@ -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() { |
