@@ -53,7 +53,11 @@ 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, & RevealAllLayoutCx ( tcx) . fn_abi_of_instance ( inst, & [ ] ) )
56+ clif_sig_from_fn_abi (
57+ tcx,
58+ triple,
59+ & RevealAllLayoutCx ( tcx) . fn_abi_of_instance ( inst, ty:: List :: empty ( ) ) ,
60+ )
5761}
5862
5963/// Instance must be monomorphized
@@ -350,14 +354,13 @@ pub(crate) fn codegen_terminator_call<'tcx>(
350354 } ;
351355
352356 let extra_args = & args[ fn_sig. inputs ( ) . len ( ) ..] ;
353- let extra_args = extra_args
354- . iter ( )
355- . map ( |op_arg| fx. monomorphize ( op_arg. ty ( fx. mir , fx. tcx ) ) )
356- . collect :: < Vec < _ > > ( ) ;
357+ let extra_args = fx
358+ . tcx
359+ . mk_type_list ( extra_args. iter ( ) . map ( |op_arg| fx. monomorphize ( op_arg. ty ( fx. mir , fx. tcx ) ) ) ) ;
357360 let fn_abi = if let Some ( instance) = instance {
358- RevealAllLayoutCx ( fx. tcx ) . fn_abi_of_instance ( instance, & extra_args)
361+ RevealAllLayoutCx ( fx. tcx ) . fn_abi_of_instance ( instance, extra_args)
359362 } else {
360- RevealAllLayoutCx ( fx. tcx ) . fn_abi_of_fn_ptr ( fn_ty. fn_sig ( fx. tcx ) , & extra_args)
363+ RevealAllLayoutCx ( fx. tcx ) . fn_abi_of_fn_ptr ( fn_ty. fn_sig ( fx. tcx ) , extra_args)
361364 } ;
362365
363366 let is_cold = instance
@@ -525,7 +528,8 @@ pub(crate) fn codegen_drop<'tcx>(
525528 def : ty:: InstanceDef :: Virtual ( drop_instance. def_id ( ) , 0 ) ,
526529 substs : drop_instance. substs ,
527530 } ;
528- let fn_abi = RevealAllLayoutCx ( fx. tcx ) . fn_abi_of_instance ( virtual_drop, & [ ] ) ;
531+ let fn_abi =
532+ RevealAllLayoutCx ( fx. tcx ) . fn_abi_of_instance ( virtual_drop, ty:: List :: empty ( ) ) ;
529533
530534 let sig = clif_sig_from_fn_abi ( fx. tcx , fx. triple ( ) , & fn_abi) ;
531535 let sig = fx. bcx . import_signature ( sig) ;
@@ -534,7 +538,8 @@ pub(crate) fn codegen_drop<'tcx>(
534538 _ => {
535539 assert ! ( !matches!( drop_instance. def, InstanceDef :: Virtual ( _, _) ) ) ;
536540
537- let fn_abi = RevealAllLayoutCx ( fx. tcx ) . fn_abi_of_instance ( drop_instance, & [ ] ) ;
541+ let fn_abi =
542+ RevealAllLayoutCx ( fx. tcx ) . fn_abi_of_instance ( drop_instance, ty:: List :: empty ( ) ) ;
538543
539544 let arg_value = drop_place. place_ref (
540545 fx,
0 commit comments