]> 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 1d107c169b04625dfe3e7c75e8866f931e7c7744..720e946d469336c534d6828159f853aaba5266be 100644 (file)
@@ -1960,9 +1960,8 @@ fn clean(&self, cx: &DocContext) -> Type {
                 }
             }
             TyBareFn(ref barefn) => BareFunction(box barefn.clean(cx)),
-            TyImplTraitExistential(ref bounds) |
-                TyImplTraitUniversal(_, 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),
         }