@@ -80,7 +80,7 @@ pub(crate) fn get_function_sig<'tcx>(
8080 clif_sig_from_fn_abi (
8181 tcx,
8282 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 ( ) ) ,
8484 )
8585}
8686
@@ -438,9 +438,9 @@ pub(crate) fn codegen_terminator_call<'tcx>(
438438 extra_args. iter ( ) . map ( |op_arg| fx. monomorphize ( op_arg. node . ty ( fx. mir , fx. tcx ) ) ) ,
439439 ) ;
440440 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)
442442 } 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)
444444 } ;
445445
446446 let is_cold = if fn_sig. abi ( ) == ExternAbi :: RustCold {
@@ -721,8 +721,8 @@ pub(crate) fn codegen_drop<'tcx>(
721721 def : ty:: InstanceKind :: Virtual ( drop_instance. def_id ( ) , 0 ) ,
722722 args : drop_instance. args ,
723723 } ;
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 ( ) ) ;
726726
727727 let sig = clif_sig_from_fn_abi ( fx. tcx , fx. target_config . default_call_conv , & fn_abi) ;
728728 let sig = fx. bcx . import_signature ( sig) ;
@@ -764,8 +764,8 @@ pub(crate) fn codegen_drop<'tcx>(
764764 def : ty:: InstanceKind :: Virtual ( drop_instance. def_id ( ) , 0 ) ,
765765 args : drop_instance. args ,
766766 } ;
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 ( ) ) ;
769769
770770 let sig = clif_sig_from_fn_abi ( fx. tcx , fx. target_config . default_call_conv , & fn_abi) ;
771771 let sig = fx. bcx . import_signature ( sig) ;
@@ -774,8 +774,8 @@ pub(crate) fn codegen_drop<'tcx>(
774774 _ => {
775775 assert ! ( !matches!( drop_instance. def, InstanceKind :: Virtual ( _, _) ) ) ;
776776
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 ( ) ) ;
779779
780780 let arg_value = drop_place. place_ref (
781781 fx,
0 commit comments