File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1743,8 +1743,10 @@ pub(crate) enum PrimitiveType {
1743
1743
U32 ,
1744
1744
U64 ,
1745
1745
U128 ,
1746
+ F16 ,
1746
1747
F32 ,
1747
1748
F64 ,
1749
+ F128 ,
1748
1750
Char ,
1749
1751
Bool ,
1750
1752
Str ,
@@ -1890,8 +1892,10 @@ impl PrimitiveType {
1890
1892
U32 => sym:: u32,
1891
1893
U64 => sym:: u64,
1892
1894
U128 => sym:: u128,
1895
+ F16 => sym:: f16,
1893
1896
F32 => sym:: f32,
1894
1897
F64 => sym:: f64,
1898
+ F128 => sym:: f128,
1895
1899
Str => sym:: str,
1896
1900
Bool => sym:: bool,
1897
1901
Char => sym:: char,
@@ -2008,8 +2012,10 @@ impl From<ty::UintTy> for PrimitiveType {
2008
2012
impl From < ty:: FloatTy > for PrimitiveType {
2009
2013
fn from ( float_ty : ty:: FloatTy ) -> PrimitiveType {
2010
2014
match float_ty {
2015
+ ty:: FloatTy :: F16 => PrimitiveType :: F16 ,
2011
2016
ty:: FloatTy :: F32 => PrimitiveType :: F32 ,
2012
2017
ty:: FloatTy :: F64 => PrimitiveType :: F64 ,
2018
+ ty:: FloatTy :: F128 => PrimitiveType :: F128 ,
2013
2019
}
2014
2020
}
2015
2021
}
You can’t perform that action at this time.
0 commit comments