@@ -5,7 +5,7 @@ mod pass_mode;
55mod returning;
66
77use rustc_middle:: middle:: codegen_fn_attrs:: CodegenFnAttrFlags ;
8- use rustc_middle:: ty:: layout:: FnAbiExt ;
8+ use rustc_middle:: ty:: layout:: FnAbiOf ;
99use rustc_target:: abi:: call:: { Conv , FnAbi } ;
1010use rustc_target:: spec:: abi:: Abi ;
1111
@@ -53,7 +53,7 @@ pub(crate) fn get_function_sig<'tcx>(
5353 inst : Instance < ' tcx > ,
5454) -> Signature {
5555 assert ! ( !inst. substs. needs_infer( ) ) ;
56- clif_sig_from_fn_abi ( tcx, triple, & FnAbi :: of_instance ( & RevealAllLayoutCx ( tcx) , inst, & [ ] ) )
56+ clif_sig_from_fn_abi ( tcx, triple, & RevealAllLayoutCx ( tcx) . fn_abi_of_instance ( inst, & [ ] ) )
5757}
5858
5959/// Instance must be monomorphized
@@ -355,9 +355,9 @@ pub(crate) fn codegen_terminator_call<'tcx>(
355355 . map ( |op_arg| fx. monomorphize ( op_arg. ty ( fx. mir , fx. tcx ) ) )
356356 . collect :: < Vec < _ > > ( ) ;
357357 let fn_abi = if let Some ( instance) = instance {
358- FnAbi :: of_instance ( & RevealAllLayoutCx ( fx. tcx ) , instance, & extra_args)
358+ RevealAllLayoutCx ( fx. tcx ) . fn_abi_of_instance ( instance, & extra_args)
359359 } else {
360- FnAbi :: of_fn_ptr ( & RevealAllLayoutCx ( fx. tcx ) , fn_ty. fn_sig ( fx. tcx ) , & extra_args)
360+ RevealAllLayoutCx ( fx. tcx ) . fn_abi_of_fn_ptr ( fn_ty. fn_sig ( fx. tcx ) , & extra_args)
361361 } ;
362362
363363 let is_cold = instance
@@ -525,7 +525,7 @@ pub(crate) fn codegen_drop<'tcx>(
525525 def : ty:: InstanceDef :: Virtual ( drop_instance. def_id ( ) , 0 ) ,
526526 substs : drop_instance. substs ,
527527 } ;
528- let fn_abi = FnAbi :: of_instance ( & RevealAllLayoutCx ( fx. tcx ) , virtual_drop, & [ ] ) ;
528+ let fn_abi = RevealAllLayoutCx ( fx. tcx ) . fn_abi_of_instance ( virtual_drop, & [ ] ) ;
529529
530530 let sig = clif_sig_from_fn_abi ( fx. tcx , fx. triple ( ) , & fn_abi) ;
531531 let sig = fx. bcx . import_signature ( sig) ;
@@ -534,7 +534,7 @@ pub(crate) fn codegen_drop<'tcx>(
534534 _ => {
535535 assert ! ( !matches!( drop_instance. def, InstanceDef :: Virtual ( _, _) ) ) ;
536536
537- let fn_abi = FnAbi :: of_instance ( & RevealAllLayoutCx ( fx. tcx ) , drop_instance, & [ ] ) ;
537+ let fn_abi = RevealAllLayoutCx ( fx. tcx ) . fn_abi_of_instance ( drop_instance, & [ ] ) ;
538538
539539 let arg_value = drop_place. place_ref (
540540 fx,
0 commit comments