@@ -80,7 +80,7 @@ pub(crate) fn get_function_sig<'tcx>(
80
80
clif_sig_from_fn_abi (
81
81
tcx,
82
82
default_call_conv,
83
- & RevealAllLayoutCx ( tcx) . fn_abi_of_instance ( inst, ty:: List :: empty ( ) ) ,
83
+ & FullyMonomorphizedLayoutCx ( tcx) . fn_abi_of_instance ( inst, ty:: List :: empty ( ) ) ,
84
84
)
85
85
}
86
86
@@ -438,9 +438,9 @@ pub(crate) fn codegen_terminator_call<'tcx>(
438
438
extra_args. iter ( ) . map ( |op_arg| fx. monomorphize ( op_arg. node . ty ( fx. mir , fx. tcx ) ) ) ,
439
439
) ;
440
440
let fn_abi = if let Some ( instance) = instance {
441
- RevealAllLayoutCx ( fx. tcx ) . fn_abi_of_instance ( instance, extra_args)
441
+ FullyMonomorphizedLayoutCx ( fx. tcx ) . fn_abi_of_instance ( instance, extra_args)
442
442
} else {
443
- RevealAllLayoutCx ( fx. tcx ) . fn_abi_of_fn_ptr ( fn_sig, extra_args)
443
+ FullyMonomorphizedLayoutCx ( fx. tcx ) . fn_abi_of_fn_ptr ( fn_sig, extra_args)
444
444
} ;
445
445
446
446
let is_cold = if fn_sig. abi ( ) == ExternAbi :: RustCold {
@@ -721,8 +721,8 @@ pub(crate) fn codegen_drop<'tcx>(
721
721
def : ty:: InstanceKind :: Virtual ( drop_instance. def_id ( ) , 0 ) ,
722
722
args : drop_instance. args ,
723
723
} ;
724
- let fn_abi =
725
- RevealAllLayoutCx ( fx . tcx ) . fn_abi_of_instance ( virtual_drop, ty:: List :: empty ( ) ) ;
724
+ let fn_abi = FullyMonomorphizedLayoutCx ( fx . tcx )
725
+ . fn_abi_of_instance ( virtual_drop, ty:: List :: empty ( ) ) ;
726
726
727
727
let sig = clif_sig_from_fn_abi ( fx. tcx , fx. target_config . default_call_conv , & fn_abi) ;
728
728
let sig = fx. bcx . import_signature ( sig) ;
@@ -764,8 +764,8 @@ pub(crate) fn codegen_drop<'tcx>(
764
764
def : ty:: InstanceKind :: Virtual ( drop_instance. def_id ( ) , 0 ) ,
765
765
args : drop_instance. args ,
766
766
} ;
767
- let fn_abi =
768
- RevealAllLayoutCx ( fx . tcx ) . fn_abi_of_instance ( virtual_drop, ty:: List :: empty ( ) ) ;
767
+ let fn_abi = FullyMonomorphizedLayoutCx ( fx . tcx )
768
+ . fn_abi_of_instance ( virtual_drop, ty:: List :: empty ( ) ) ;
769
769
770
770
let sig = clif_sig_from_fn_abi ( fx. tcx , fx. target_config . default_call_conv , & fn_abi) ;
771
771
let sig = fx. bcx . import_signature ( sig) ;
@@ -774,8 +774,8 @@ pub(crate) fn codegen_drop<'tcx>(
774
774
_ => {
775
775
assert ! ( !matches!( drop_instance. def, InstanceKind :: Virtual ( _, _) ) ) ;
776
776
777
- let fn_abi =
778
- RevealAllLayoutCx ( fx . tcx ) . fn_abi_of_instance ( drop_instance, ty:: List :: empty ( ) ) ;
777
+ let fn_abi = FullyMonomorphizedLayoutCx ( fx . tcx )
778
+ . fn_abi_of_instance ( drop_instance, ty:: List :: empty ( ) ) ;
779
779
780
780
let arg_value = drop_place. place_ref (
781
781
fx,
0 commit comments