Skip to content

Commit b73c8b8

Browse files
committed
Fix rustdoc
1 parent c065f57 commit b73c8b8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/librustdoc/clean/blanket_impl.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ impl<'a, 'tcx> BlanketImplFinder<'a, 'tcx> {
6464
.instantiate(self.cx.tcx, impl_substs)
6565
.predicates
6666
.into_iter()
67-
.chain(Some(trait_ref.without_const().to_predicate(infcx.tcx)));
67+
.chain(Some(
68+
ty::Binder::dummy(trait_ref)
69+
.without_const()
70+
.to_predicate(infcx.tcx),
71+
));
6872
for predicate in predicates {
6973
debug!("testing predicate {:?}", predicate);
7074
let obligation = traits::Obligation::new(

src/librustdoc/clean/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ impl Clean<GenericBound> for hir::GenericBound<'_> {
132132
hir::GenericBound::LangItemTrait(lang_item, span, _, generic_args) => {
133133
let def_id = cx.tcx.require_lang_item(lang_item, Some(span));
134134

135-
let trait_ref = ty::TraitRef::identity(cx.tcx, def_id);
135+
let trait_ref = ty::TraitRef::identity(cx.tcx, def_id).skip_binder();
136136

137137
let generic_args = generic_args.clean(cx);
138138
let bindings = match generic_args {

0 commit comments

Comments
 (0)