Skip to content

Commit 7ce4a49

Browse files
iter_identity is a better name
1 parent 4d26177 commit 7ce4a49

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
@@ -99,7 +99,7 @@ pub fn contains_ty_adt_constructor_opaque<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'
9999
for (predicate, _span) in cx
100100
.tcx
101101
.explicit_item_super_predicates(def_id)
102-
.instantiate_identity_iter_copied()
102+
.iter_identity_copied()
103103
{
104104
match predicate.kind().skip_binder() {
105105
// For `impl Trait<U>`, it will register a predicate of `T: Trait<U>`, so we go through

0 commit comments

Comments
 (0)