@@ -1777,8 +1777,10 @@ impl PrimitiveType {
1777
1777
hir:: PrimTy :: Uint ( UintTy :: U32 ) => PrimitiveType :: U32 ,
1778
1778
hir:: PrimTy :: Uint ( UintTy :: U64 ) => PrimitiveType :: U64 ,
1779
1779
hir:: PrimTy :: Uint ( UintTy :: U128 ) => PrimitiveType :: U128 ,
1780
+ hir:: PrimTy :: Float ( FloatTy :: F16 ) => PrimitiveType :: F16 ,
1780
1781
hir:: PrimTy :: Float ( FloatTy :: F32 ) => PrimitiveType :: F32 ,
1781
1782
hir:: PrimTy :: Float ( FloatTy :: F64 ) => PrimitiveType :: F64 ,
1783
+ hir:: PrimTy :: Float ( FloatTy :: F128 ) => PrimitiveType :: F128 ,
1782
1784
hir:: PrimTy :: Str => PrimitiveType :: Str ,
1783
1785
hir:: PrimTy :: Bool => PrimitiveType :: Bool ,
1784
1786
hir:: PrimTy :: Char => PrimitiveType :: Char ,
@@ -1977,8 +1979,10 @@ impl From<ast::UintTy> for PrimitiveType {
1977
1979
impl From < ast:: FloatTy > for PrimitiveType {
1978
1980
fn from ( float_ty : ast:: FloatTy ) -> PrimitiveType {
1979
1981
match float_ty {
1982
+ ast:: FloatTy :: F16 => PrimitiveType :: F16 ,
1980
1983
ast:: FloatTy :: F32 => PrimitiveType :: F32 ,
1981
1984
ast:: FloatTy :: F64 => PrimitiveType :: F64 ,
1985
+ ast:: FloatTy :: F128 => PrimitiveType :: F128 ,
1982
1986
}
1983
1987
}
1984
1988
}
0 commit comments