]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/clean/mod.rs
Fix impl Trait Lifetime Handling
[rust.git] / src / librustdoc / clean / mod.rs
index 4b60536e1d17627513247312dbf4e8d299cad5e8..720e946d469336c534d6828159f853aaba5266be 100644 (file)
@@ -1960,7 +1960,8 @@ fn clean(&self, cx: &DocContext) -> Type {
                 }
             }
             TyBareFn(ref barefn) => BareFunction(box barefn.clean(cx)),
-            TyImplTrait(ref bounds) => ImplTrait(bounds.clean(cx)),
+            TyImplTraitExistential(ref exist_ty, ref _lts) => ImplTrait(exist_ty.bounds.clean(cx)),
+            TyImplTraitUniversal(_, ref bounds) => ImplTrait(bounds.clean(cx)),
             TyInfer | TyErr => Infer,
             TyTypeof(..) => panic!("Unimplemented type {:?}", self.node),
         }