@@ -8,8 +8,8 @@ use rustc_middle::ty::print::with_no_trimmed_paths;
8
8
use rustc_middle:: ty:: { self , Ty , TypeVisitableExt } ;
9
9
use rustc_target:: abi:: call:: { CastTarget , FnAbi , Reg } ;
10
10
use rustc_target:: abi:: {
11
- self , Abi , Align , FieldsShape , Int , Integer , PointeeInfo , Pointer , Size , TyAbiInterface ,
12
- Variants , F128 , F16 , F32 , F64 ,
11
+ self , Abi , Align , FieldsShape , Float , Int , Integer , PointeeInfo , Pointer , Size , TyAbiInterface ,
12
+ Variants ,
13
13
} ;
14
14
15
15
use crate :: abi:: { FnAbiGcc , FnAbiGccExt , GccType } ;
@@ -283,10 +283,7 @@ impl<'tcx> LayoutGccExt<'tcx> for TyAndLayout<'tcx> {
283
283
match scalar. primitive ( ) {
284
284
Int ( i, true ) => cx. type_from_integer ( i) ,
285
285
Int ( i, false ) => cx. type_from_unsigned_integer ( i) ,
286
- F16 => cx. type_f16 ( ) ,
287
- F32 => cx. type_f32 ( ) ,
288
- F64 => cx. type_f64 ( ) ,
289
- F128 => cx. type_f128 ( ) ,
286
+ Float ( f) => cx. type_from_float ( f) ,
290
287
Pointer ( address_space) => {
291
288
// If we know the alignment, pick something better than i8.
292
289
let pointee = if let Some ( pointee) = self . pointee_info_at ( cx, offset) {
0 commit comments