diff options
| author | Michael Goulet <michael@errs.io> | 2024-07-06 11:54:22 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-07-07 00:12:35 -0400 |
| commit | 7ce4a499119c2a816a40af73b6b4cc39b5278400 (patch) | |
| tree | 414b5c7429d8df95639051070d7fc2c4435b69f2 | |
| parent | 4d261774b7fe394355158e65c53068015775d9db (diff) | |
| download | rust-7ce4a499119c2a816a40af73b6b4cc39b5278400.tar.gz rust-7ce4a499119c2a816a40af73b6b4cc39b5278400.zip | |
iter_identity is a better name
| -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 e5d20564196..acaeb93f44a 100644 --- a/clippy_utils/src/ty.rs +++ b/clippy_utils/src/ty.rs @@ -99,7 +99,7 @@ pub fn contains_ty_adt_constructor_opaque<'tcx>(cx: &LateContext<'tcx>, ty: Ty<' for (predicate, _span) in cx .tcx .explicit_item_super_predicates(def_id) - .instantiate_identity_iter_copied() + .iter_identity_copied() { match predicate.kind().skip_binder() { // For `impl Trait<U>`, it will register a predicate of `T: Trait<U>`, so we go through |
