Propegate HIR and AST f16
and f128
types to rustdoc
This commit is contained in:
parent
baba49d8f0
commit
6781801d33
@ -1777,8 +1777,10 @@ impl PrimitiveType {
|
||||
hir::PrimTy::Uint(UintTy::U32) => PrimitiveType::U32,
|
||||
hir::PrimTy::Uint(UintTy::U64) => PrimitiveType::U64,
|
||||
hir::PrimTy::Uint(UintTy::U128) => PrimitiveType::U128,
|
||||
hir::PrimTy::Float(FloatTy::F16) => PrimitiveType::F16,
|
||||
hir::PrimTy::Float(FloatTy::F32) => PrimitiveType::F32,
|
||||
hir::PrimTy::Float(FloatTy::F64) => PrimitiveType::F64,
|
||||
hir::PrimTy::Float(FloatTy::F128) => PrimitiveType::F128,
|
||||
hir::PrimTy::Str => PrimitiveType::Str,
|
||||
hir::PrimTy::Bool => PrimitiveType::Bool,
|
||||
hir::PrimTy::Char => PrimitiveType::Char,
|
||||
@ -1977,8 +1979,10 @@ impl From<ast::UintTy> for PrimitiveType {
|
||||
impl From<ast::FloatTy> for PrimitiveType {
|
||||
fn from(float_ty: ast::FloatTy) -> PrimitiveType {
|
||||
match float_ty {
|
||||
ast::FloatTy::F16 => PrimitiveType::F16,
|
||||
ast::FloatTy::F32 => PrimitiveType::F32,
|
||||
ast::FloatTy::F64 => PrimitiveType::F64,
|
||||
ast::FloatTy::F128 => PrimitiveType::F128,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user