@@ -8,7 +8,7 @@ use rustc_target::abi::call::FnAbi;
88use crate :: prelude:: * ;
99
1010pub ( crate ) fn codegen_fn < ' tcx > (
11- cx : & mut crate :: CodegenCx < ' tcx , impl Module > ,
11+ cx : & mut crate :: CodegenCx < ' _ , ' tcx > ,
1212 instance : Instance < ' tcx > ,
1313 linkage : Linkage ,
1414) {
@@ -209,7 +209,7 @@ pub(crate) fn verify_func(
209209 } ) ;
210210}
211211
212- fn codegen_fn_content ( fx : & mut FunctionCx < ' _ , ' _ , impl Module > ) {
212+ fn codegen_fn_content ( fx : & mut FunctionCx < ' _ , ' _ , ' _ > ) {
213213 for ( bb, bb_data) in fx. mir . basic_blocks ( ) . iter_enumerated ( ) {
214214 let block = fx. get_block ( bb) ;
215215 fx. bcx . switch_to_block ( block) ;
@@ -453,7 +453,7 @@ fn codegen_fn_content(fx: &mut FunctionCx<'_, '_, impl Module>) {
453453}
454454
455455fn codegen_stmt < ' tcx > (
456- fx : & mut FunctionCx < ' _ , ' tcx , impl Module > ,
456+ fx : & mut FunctionCx < ' _ , ' _ , ' tcx > ,
457457 #[ allow( unused_variables) ] cur_block : Block ,
458458 stmt : & Statement < ' tcx > ,
459459) {
@@ -595,10 +595,7 @@ fn codegen_stmt<'tcx>(
595595 let from_ty = operand. layout ( ) . ty ;
596596 let to_ty = fx. monomorphize ( to_ty) ;
597597
598- fn is_fat_ptr < ' tcx > (
599- fx : & FunctionCx < ' _ , ' tcx , impl Module > ,
600- ty : Ty < ' tcx > ,
601- ) -> bool {
598+ fn is_fat_ptr < ' tcx > ( fx : & FunctionCx < ' _ , ' _ , ' tcx > , ty : Ty < ' tcx > ) -> bool {
602599 ty. builtin_deref ( true )
603600 . map (
604601 |ty:: TypeAndMut {
@@ -895,10 +892,7 @@ fn codegen_stmt<'tcx>(
895892 }
896893}
897894
898- fn codegen_array_len < ' tcx > (
899- fx : & mut FunctionCx < ' _ , ' tcx , impl Module > ,
900- place : CPlace < ' tcx > ,
901- ) -> Value {
895+ fn codegen_array_len < ' tcx > ( fx : & mut FunctionCx < ' _ , ' _ , ' tcx > , place : CPlace < ' tcx > ) -> Value {
902896 match * place. layout ( ) . ty . kind ( ) {
903897 ty:: Array ( _elem_ty, len) => {
904898 let len = fx
@@ -915,7 +909,7 @@ fn codegen_array_len<'tcx>(
915909}
916910
917911pub ( crate ) fn codegen_place < ' tcx > (
918- fx : & mut FunctionCx < ' _ , ' tcx , impl Module > ,
912+ fx : & mut FunctionCx < ' _ , ' _ , ' tcx > ,
919913 place : Place < ' tcx > ,
920914) -> CPlace < ' tcx > {
921915 let mut cplace = fx. get_local_place ( place. local ) ;
@@ -987,7 +981,7 @@ pub(crate) fn codegen_place<'tcx>(
987981}
988982
989983pub ( crate ) fn codegen_operand < ' tcx > (
990- fx : & mut FunctionCx < ' _ , ' tcx , impl Module > ,
984+ fx : & mut FunctionCx < ' _ , ' _ , ' tcx > ,
991985 operand : & Operand < ' tcx > ,
992986) -> CValue < ' tcx > {
993987 match operand {
@@ -999,11 +993,7 @@ pub(crate) fn codegen_operand<'tcx>(
999993 }
1000994}
1001995
1002- pub ( crate ) fn codegen_panic < ' tcx > (
1003- fx : & mut FunctionCx < ' _ , ' tcx , impl Module > ,
1004- msg_str : & str ,
1005- span : Span ,
1006- ) {
996+ pub ( crate ) fn codegen_panic < ' tcx > ( fx : & mut FunctionCx < ' _ , ' _ , ' tcx > , msg_str : & str , span : Span ) {
1007997 let location = fx. get_caller_location ( span) . load_scalar ( fx) ;
1008998
1009999 let msg_ptr = fx. anonymous_str ( "assert" , msg_str) ;
@@ -1017,7 +1007,7 @@ pub(crate) fn codegen_panic<'tcx>(
10171007}
10181008
10191009pub ( crate ) fn codegen_panic_inner < ' tcx > (
1020- fx : & mut FunctionCx < ' _ , ' tcx , impl Module > ,
1010+ fx : & mut FunctionCx < ' _ , ' _ , ' tcx > ,
10211011 lang_item : rustc_hir:: LangItem ,
10221012 args : & [ Value ] ,
10231013 span : Span ,
0 commit comments