Fix rustdoc
This commit is contained in:
parent
c065f57111
commit
b73c8b823f
2 changed files with 6 additions and 2 deletions
|
@ -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(
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue