Skip to content

Commit e7b8bfe

Browse files
committed
Fix rustdoc
1 parent c268798 commit e7b8bfe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/librustdoc/clean/mod.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use rustc::hir::def::{CtorKind, DefKind, Res};
2121
use rustc::hir::def_id::{CrateNum, DefId, CRATE_DEF_INDEX};
2222
use rustc::hir::ptr::P;
2323
use rustc::ty::subst::InternalSubsts;
24-
use rustc::ty::{self, TyCtxt, Ty, AdtKind};
24+
use rustc::ty::{self, TyCtxt, Ty, AdtKind, Lift};
2525
use rustc::ty::fold::TypeFolder;
2626
use rustc::util::nodemap::{FxHashMap, FxHashSet};
2727
use syntax::ast::{self, Ident};
@@ -551,7 +551,8 @@ impl<'tcx> Clean<WherePredicate> for ty::ProjectionPredicate<'tcx> {
551551

552552
impl<'tcx> Clean<Type> for ty::ProjectionTy<'tcx> {
553553
fn clean(&self, cx: &DocContext<'_>) -> Type {
554-
let trait_ = match self.trait_ref(cx.tcx).clean(cx) {
554+
let lifted = self.lift_to_tcx(cx.tcx).unwrap();
555+
let trait_ = match lifted.trait_ref(cx.tcx).clean(cx) {
555556
GenericBound::TraitBound(t, _) => t.trait_,
556557
GenericBound::Outlives(_) => panic!("cleaning a trait got a lifetime"),
557558
};

0 commit comments

Comments
 (0)