@@ -2444,7 +2444,7 @@ pub enum PrimTy {
2444
2444
2445
2445
impl PrimTy {
2446
2446
/// All of the primitive types
2447
- pub const ALL : [ Self ; 17 ] = [
2447
+ pub const ALL : [ Self ; 19 ] = [
2448
2448
// any changes here should also be reflected in `PrimTy::from_name`
2449
2449
Self :: Int ( IntTy :: I8 ) ,
2450
2450
Self :: Int ( IntTy :: I16 ) ,
@@ -2458,9 +2458,10 @@ impl PrimTy {
2458
2458
Self :: Uint ( UintTy :: U64 ) ,
2459
2459
Self :: Uint ( UintTy :: U128 ) ,
2460
2460
Self :: Uint ( UintTy :: Usize ) ,
2461
+ Self :: Float ( FloatTy :: F16 ) ,
2461
2462
Self :: Float ( FloatTy :: F32 ) ,
2462
2463
Self :: Float ( FloatTy :: F64 ) ,
2463
- // FIXME(f16_f128): add these when enabled below
2464
+ Self :: Float ( FloatTy :: F128 ) ,
2464
2465
Self :: Bool ,
2465
2466
Self :: Char ,
2466
2467
Self :: Str ,
@@ -2508,12 +2509,10 @@ impl PrimTy {
2508
2509
sym:: u64 => Self :: Uint ( UintTy :: U64 ) ,
2509
2510
sym:: u128 => Self :: Uint ( UintTy :: U128 ) ,
2510
2511
sym:: usize => Self :: Uint ( UintTy :: Usize ) ,
2512
+ sym:: f16 => Self :: Float ( FloatTy :: F16 ) ,
2511
2513
sym:: f32 => Self :: Float ( FloatTy :: F32 ) ,
2512
2514
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 ) ,
2517
2516
sym:: bool => Self :: Bool ,
2518
2517
sym:: char => Self :: Char ,
2519
2518
sym:: str => Self :: Str ,
0 commit comments