diff options
| author | Andrew Cann <shum@canndrew.org> | 2016-06-30 02:13:59 +0800 |
|---|---|---|
| committer | Andrew Cann <shum@canndrew.org> | 2016-08-13 21:37:09 +0800 |
| commit | 9f9f8567eb4effe1052b7458c7451f62d1dcc0b1 (patch) | |
| tree | ea6e7364ca6262de8e3ea987a55f35f064804fa5 | |
| parent | 533a389962c7bfff1bd38e2395cf63ea0af5b8ae (diff) | |
| download | rust-9f9f8567eb4effe1052b7458c7451f62d1dcc0b1.tar.gz rust-9f9f8567eb4effe1052b7458c7451f62d1dcc0b1.zip | |
Fix rustdoc after rebase
| -rw-r--r-- | src/librustdoc/clean/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index 73bc647fa9f..ce1ad1dddc8 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -1682,6 +1682,7 @@ impl Clean<Type> for hir::Ty { fn clean(&self, cx: &DocContext) -> Type { use rustc::hir::*; match self.node { + TyEmpty => Bottom, TyPtr(ref m) => RawPointer(m.mutbl.clean(cx), box m.ty.clean(cx)), TyRptr(ref l, ref m) => BorrowedRef {lifetime: l.clean(cx), mutability: m.mutbl.clean(cx), @@ -1790,6 +1791,7 @@ impl Clean<Type> for hir::Ty { impl<'tcx> Clean<Type> for ty::Ty<'tcx> { fn clean(&self, cx: &DocContext) -> Type { match self.sty { + ty::TyEmpty => Bottom, ty::TyBool => Primitive(Bool), ty::TyChar => Primitive(Char), ty::TyInt(ast::IntTy::Is) => Primitive(Isize), |
