1
Fork 0

Fix rustdoc

This commit is contained in:
jackh726 2021-09-15 23:43:19 -04:00
parent c065f57111
commit b73c8b823f
2 changed files with 6 additions and 2 deletions

View file

@ -64,7 +64,11 @@ impl<'a, 'tcx> BlanketImplFinder<'a, 'tcx> {
.instantiate(self.cx.tcx, impl_substs)
.predicates
.into_iter()
.chain(Some(trait_ref.without_const().to_predicate(infcx.tcx)));
.chain(Some(
ty::Binder::dummy(trait_ref)
.without_const()
.to_predicate(infcx.tcx),
));
for predicate in predicates {
debug!("testing predicate {:?}", predicate);
let obligation = traits::Obligation::new(

View file

@ -132,7 +132,7 @@ impl Clean<GenericBound> for hir::GenericBound<'_> {
hir::GenericBound::LangItemTrait(lang_item, span, _, generic_args) => {
let def_id = cx.tcx.require_lang_item(lang_item, Some(span));
let trait_ref = ty::TraitRef::identity(cx.tcx, def_id);
let trait_ref = ty::TraitRef::identity(cx.tcx, def_id).skip_binder();
let generic_args = generic_args.clean(cx);
let bindings = match generic_args {