Skip to content

Commit 6b5629b

Browse files
committed
Propegate HIR and AST f16 and f128 types to rustdoc
1 parent aaf324d commit 6b5629b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/librustdoc/clean/types.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1777,8 +1777,10 @@ impl PrimitiveType {
17771777
hir::PrimTy::Uint(UintTy::U32) => PrimitiveType::U32,
17781778
hir::PrimTy::Uint(UintTy::U64) => PrimitiveType::U64,
17791779
hir::PrimTy::Uint(UintTy::U128) => PrimitiveType::U128,
1780+
hir::PrimTy::Float(FloatTy::F16) => PrimitiveType::F16,
17801781
hir::PrimTy::Float(FloatTy::F32) => PrimitiveType::F32,
17811782
hir::PrimTy::Float(FloatTy::F64) => PrimitiveType::F64,
1783+
hir::PrimTy::Float(FloatTy::F128) => PrimitiveType::F128,
17821784
hir::PrimTy::Str => PrimitiveType::Str,
17831785
hir::PrimTy::Bool => PrimitiveType::Bool,
17841786
hir::PrimTy::Char => PrimitiveType::Char,
@@ -1977,8 +1979,10 @@ impl From<ast::UintTy> for PrimitiveType {
19771979
impl From<ast::FloatTy> for PrimitiveType {
19781980
fn from(float_ty: ast::FloatTy) -> PrimitiveType {
19791981
match float_ty {
1982+
ast::FloatTy::F16 => PrimitiveType::F16,
19801983
ast::FloatTy::F32 => PrimitiveType::F32,
19811984
ast::FloatTy::F64 => PrimitiveType::F64,
1985+
ast::FloatTy::F128 => PrimitiveType::F128,
19821986
}
19831987
}
19841988
}

0 commit comments

Comments
 (0)