Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7290e24

Browse files
committedJun 17, 2024
Fix other tools
1 parent 17828c1 commit 7290e24

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed
 

‎src/librustdoc/clean/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ fn clean_generic_bound<'tcx>(
228228

229229
GenericBound::TraitBound(clean_poly_trait_ref(t, cx), modifier)
230230
}
231+
// FIXME(precise_capturing): Implement rustdoc support
232+
hir::GenericBound::Use(..) => return None,
231233
})
232234
}
233235

‎src/tools/clippy/clippy_utils/src/ast_utils.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -724,11 +724,8 @@ pub fn eq_ty(l: &Ty, r: &Ty) -> bool {
724724
(Tup(l), Tup(r)) => over(l, r, |l, r| eq_ty(l, r)),
725725
(Path(lq, lp), Path(rq, rp)) => both(lq, rq, eq_qself) && eq_path(lp, rp),
726726
(TraitObject(lg, ls), TraitObject(rg, rs)) => ls == rs && over(lg, rg, eq_generic_bound),
727-
(ImplTrait(_, lg, lc), ImplTrait(_, rg, rc)) => {
727+
(ImplTrait(_, lg), ImplTrait(_, rg)) => {
728728
over(lg, rg, eq_generic_bound)
729-
&& both(lc, rc, |lc, rc| {
730-
over(lc.0.as_slice(), rc.0.as_slice(), eq_precise_capture)
731-
})
732729
},
733730
(Typeof(l), Typeof(r)) => eq_expr(&l.value, &r.value),
734731
(MacCall(l), MacCall(r)) => eq_mac_call(l, r),

0 commit comments

Comments
 (0)
Please sign in to comment.