about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-06-06 09:01:45 -0400
committerMichael Goulet <michael@errs.io>2024-06-17 22:35:25 -0400
commit7218fdd2db0d5b5a1c05564ad1fd821de220c003 (patch)
tree55a08ec6c4d155c7af5a5f732523457298c970f0
parent61fc1aec74542645d03b35b427b5706a108b4b04 (diff)
downloadrust-7218fdd2db0d5b5a1c05564ad1fd821de220c003.tar.gz
rust-7218fdd2db0d5b5a1c05564ad1fd821de220c003.zip
Fix other tools
-rw-r--r--clippy_utils/src/ast_utils.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/clippy_utils/src/ast_utils.rs b/clippy_utils/src/ast_utils.rs
index c70f5c2df84..fb43f7d80af 100644
--- a/clippy_utils/src/ast_utils.rs
+++ b/clippy_utils/src/ast_utils.rs
@@ -724,11 +724,8 @@ pub fn eq_ty(l: &Ty, r: &Ty) -> bool {
         (Tup(l), Tup(r)) => over(l, r, |l, r| eq_ty(l, r)),
         (Path(lq, lp), Path(rq, rp)) => both(lq, rq, eq_qself) && eq_path(lp, rp),
         (TraitObject(lg, ls), TraitObject(rg, rs)) => ls == rs && over(lg, rg, eq_generic_bound),
-        (ImplTrait(_, lg, lc), ImplTrait(_, rg, rc)) => {
+        (ImplTrait(_, lg), ImplTrait(_, rg)) => {
             over(lg, rg, eq_generic_bound)
-                && both(lc, rc, |lc, rc| {
-                    over(lc.0.as_slice(), rc.0.as_slice(), eq_precise_capture)
-                })
         },
         (Typeof(l), Typeof(r)) => eq_expr(&l.value, &r.value),
         (MacCall(l), MacCall(r)) => eq_mac_call(l, r),