@@ -4,7 +4,7 @@ use gccjit::{Struct, Type};
4
4
use crate :: rustc_codegen_ssa:: traits:: { BaseTypeMethods , DerivedTypeMethods , LayoutTypeMethods } ;
5
5
use rustc_middle:: bug;
6
6
use rustc_middle:: ty:: { self , Ty , TypeVisitableExt } ;
7
- use rustc_middle:: ty:: layout:: { FnAbiOf , LayoutOf , TyAndLayout } ;
7
+ use rustc_middle:: ty:: layout:: { LayoutOf , TyAndLayout } ;
8
8
use rustc_middle:: ty:: print:: with_no_trimmed_paths;
9
9
use rustc_target:: abi:: { self , Abi , Align , F32 , F64 , FieldsShape , Int , Integer , Pointer , PointeeInfo , Size , TyAbiInterface , Variants } ;
10
10
use rustc_target:: abi:: call:: { CastTarget , FnAbi , Reg } ;
@@ -74,8 +74,8 @@ fn uncached_gcc_type<'gcc, 'tcx>(cx: &CodegenCx<'gcc, 'tcx>, layout: TyAndLayout
74
74
Abi :: ScalarPair ( ..) => {
75
75
return cx. type_struct (
76
76
& [
77
- layout. scalar_pair_element_gcc_type ( cx, 0 , false ) ,
78
- layout. scalar_pair_element_gcc_type ( cx, 1 , false ) ,
77
+ layout. scalar_pair_element_gcc_type ( cx, 0 ) ,
78
+ layout. scalar_pair_element_gcc_type ( cx, 1 ) ,
79
79
] ,
80
80
false ,
81
81
) ;
@@ -150,7 +150,7 @@ pub trait LayoutGccExt<'tcx> {
150
150
fn gcc_type < ' gcc > ( & self , cx : & CodegenCx < ' gcc , ' tcx > ) -> Type < ' gcc > ;
151
151
fn immediate_gcc_type < ' gcc > ( & self , cx : & CodegenCx < ' gcc , ' tcx > ) -> Type < ' gcc > ;
152
152
fn scalar_gcc_type_at < ' gcc > ( & self , cx : & CodegenCx < ' gcc , ' tcx > , scalar : & abi:: Scalar , offset : Size ) -> Type < ' gcc > ;
153
- fn scalar_pair_element_gcc_type < ' gcc > ( & self , cx : & CodegenCx < ' gcc , ' tcx > , index : usize , immediate : bool ) -> Type < ' gcc > ;
153
+ fn scalar_pair_element_gcc_type < ' gcc > ( & self , cx : & CodegenCx < ' gcc , ' tcx > , index : usize ) -> Type < ' gcc > ;
154
154
fn gcc_field_index ( & self , index : usize ) -> u64 ;
155
155
fn pointee_info_at < ' gcc > ( & self , cx : & CodegenCx < ' gcc , ' tcx > , offset : Size ) -> Option < PointeeInfo > ;
156
156
}
@@ -265,7 +265,7 @@ impl<'tcx> LayoutGccExt<'tcx> for TyAndLayout<'tcx> {
265
265
}
266
266
}
267
267
268
- fn scalar_pair_element_gcc_type < ' gcc > ( & self , cx : & CodegenCx < ' gcc , ' tcx > , index : usize , immediate : bool ) -> Type < ' gcc > {
268
+ fn scalar_pair_element_gcc_type < ' gcc > ( & self , cx : & CodegenCx < ' gcc , ' tcx > , index : usize ) -> Type < ' gcc > {
269
269
// This must produce the same result for `repr(transparent)` wrappers as for the inner type!
270
270
// In other words, this should generally not look at the type at all, but only at the
271
271
// layout.
@@ -347,8 +347,8 @@ impl<'gcc, 'tcx> LayoutTypeMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
347
347
layout. gcc_field_index ( index)
348
348
}
349
349
350
- fn scalar_pair_element_backend_type ( & self , layout : TyAndLayout < ' tcx > , index : usize , immediate : bool ) -> Type < ' gcc > {
351
- layout. scalar_pair_element_gcc_type ( self , index, immediate )
350
+ fn scalar_pair_element_backend_type ( & self , layout : TyAndLayout < ' tcx > , index : usize , _immediate : bool ) -> Type < ' gcc > {
351
+ layout. scalar_pair_element_gcc_type ( self , index)
352
352
}
353
353
354
354
fn cast_backend_type ( & self , ty : & CastTarget ) -> Type < ' gcc > {
0 commit comments