@@ -2444,7 +2444,7 @@ pub enum PrimTy {
24442444
24452445impl PrimTy {
24462446 /// All of the primitive types
2447- pub const ALL : [ Self ; 17 ] = [
2447+ pub const ALL : [ Self ; 19 ] = [
24482448 // any changes here should also be reflected in `PrimTy::from_name`
24492449 Self :: Int ( IntTy :: I8 ) ,
24502450 Self :: Int ( IntTy :: I16 ) ,
@@ -2458,9 +2458,10 @@ impl PrimTy {
24582458 Self :: Uint ( UintTy :: U64 ) ,
24592459 Self :: Uint ( UintTy :: U128 ) ,
24602460 Self :: Uint ( UintTy :: Usize ) ,
2461+ Self :: Float ( FloatTy :: F16 ) ,
24612462 Self :: Float ( FloatTy :: F32 ) ,
24622463 Self :: Float ( FloatTy :: F64 ) ,
2463- // FIXME(f16_f128): add these when enabled below
2464+ Self :: Float ( FloatTy :: F128 ) ,
24642465 Self :: Bool ,
24652466 Self :: Char ,
24662467 Self :: Str ,
@@ -2508,12 +2509,10 @@ impl PrimTy {
25082509 sym:: u64 => Self :: Uint ( UintTy :: U64 ) ,
25092510 sym:: u128 => Self :: Uint ( UintTy :: U128 ) ,
25102511 sym:: usize => Self :: Uint ( UintTy :: Usize ) ,
2512+ sym:: f16 => Self :: Float ( FloatTy :: F16 ) ,
25112513 sym:: f32 => Self :: Float ( FloatTy :: F32 ) ,
25122514 sym:: f64 => Self :: Float ( FloatTy :: F64 ) ,
2513- // FIXME(f16_f128): enabling these will open the gates of f16 and f128 being
2514- // understood by rustc.
2515- // sym::f16 => Self::Float(FloatTy::F16),
2516- // sym::f128 => Self::Float(FloatTy::F128),
2515+ sym:: f128 => Self :: Float ( FloatTy :: F128 ) ,
25172516 sym:: bool => Self :: Bool ,
25182517 sym:: char => Self :: Char ,
25192518 sym:: str => Self :: Str ,
0 commit comments