Skip to content

Commit 583a319

Browse files
Fix other tools
1 parent eda93ea commit 583a319

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Diff for: 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

Diff for: 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)