@@ -70,7 +70,7 @@ pub(crate) fn get_function_sig<'tcx>(
7070 default_call_conv : CallConv ,
7171 inst : Instance < ' tcx > ,
7272) -> Signature {
73- assert ! ( !inst. substs . has_infer( ) ) ;
73+ assert ! ( !inst. args . has_infer( ) ) ;
7474 clif_sig_from_fn_abi (
7575 tcx,
7676 default_call_conv,
@@ -377,16 +377,16 @@ pub(crate) fn codegen_terminator_call<'tcx>(
377377 let ret_place = codegen_place ( fx, destination) ;
378378
379379 // Handle special calls like intrinsics and empty drop glue.
380- let instance = if let ty:: FnDef ( def_id, substs ) = * func. layout ( ) . ty . kind ( ) {
380+ let instance = if let ty:: FnDef ( def_id, fn_args ) = * func. layout ( ) . ty . kind ( ) {
381381 let instance =
382- ty:: Instance :: expect_resolve ( fx. tcx , ty:: ParamEnv :: reveal_all ( ) , def_id, substs )
382+ ty:: Instance :: expect_resolve ( fx. tcx , ty:: ParamEnv :: reveal_all ( ) , def_id, fn_args )
383383 . polymorphize ( fx. tcx ) ;
384384
385385 if fx. tcx . symbol_name ( instance) . name . starts_with ( "llvm." ) {
386386 crate :: intrinsics:: codegen_llvm_intrinsic_call (
387387 fx,
388388 & fx. tcx . symbol_name ( instance) . name ,
389- substs ,
389+ fn_args ,
390390 args,
391391 ret_place,
392392 target,
@@ -616,7 +616,7 @@ pub(crate) fn codegen_drop<'tcx>(
616616 // `Instance::resolve_drop_in_place`?
617617 let virtual_drop = Instance {
618618 def : ty:: InstanceDef :: Virtual ( drop_instance. def_id ( ) , 0 ) ,
619- substs : drop_instance. substs ,
619+ args : drop_instance. args ,
620620 } ;
621621 let fn_abi =
622622 RevealAllLayoutCx ( fx. tcx ) . fn_abi_of_instance ( virtual_drop, ty:: List :: empty ( ) ) ;
@@ -653,7 +653,7 @@ pub(crate) fn codegen_drop<'tcx>(
653653
654654 let virtual_drop = Instance {
655655 def : ty:: InstanceDef :: Virtual ( drop_instance. def_id ( ) , 0 ) ,
656- substs : drop_instance. substs ,
656+ args : drop_instance. args ,
657657 } ;
658658 let fn_abi =
659659 RevealAllLayoutCx ( fx. tcx ) . fn_abi_of_instance ( virtual_drop, ty:: List :: empty ( ) ) ;
0 commit comments