@@ -238,7 +238,7 @@ pub(crate) fn get_function_name_and_sig<'tcx>(
238238/// Instance must be monomorphized
239239pub ( crate ) fn import_function < ' tcx > (
240240 tcx : TyCtxt < ' tcx > ,
241- module : & mut Module < impl Backend > ,
241+ module : & mut impl Module ,
242242 inst : Instance < ' tcx > ,
243243) -> FuncId {
244244 let ( name, sig) = get_function_name_and_sig ( tcx, module. isa ( ) . triple ( ) , inst, true ) ;
@@ -247,7 +247,7 @@ pub(crate) fn import_function<'tcx>(
247247 . unwrap ( )
248248}
249249
250- impl < ' tcx , B : Backend + ' static > FunctionCx < ' _ , ' tcx , B > {
250+ impl < ' tcx , M : Module > FunctionCx < ' _ , ' tcx , M > {
251251 /// Instance must be monomorphized
252252 pub ( crate ) fn get_function_ref ( & mut self , inst : Instance < ' tcx > ) -> FuncRef {
253253 let func_id = import_function ( self . tcx , & mut self . cx . module , inst) ;
@@ -329,7 +329,7 @@ impl<'tcx, B: Backend + 'static> FunctionCx<'_, 'tcx, B> {
329329
330330/// Make a [`CPlace`] capable of holding value of the specified type.
331331fn make_local_place < ' tcx > (
332- fx : & mut FunctionCx < ' _ , ' tcx , impl Backend > ,
332+ fx : & mut FunctionCx < ' _ , ' tcx , impl Module > ,
333333 local : Local ,
334334 layout : TyAndLayout < ' tcx > ,
335335 is_ssa : bool ,
@@ -351,7 +351,7 @@ fn make_local_place<'tcx>(
351351}
352352
353353pub ( crate ) fn codegen_fn_prelude < ' tcx > (
354- fx : & mut FunctionCx < ' _ , ' tcx , impl Backend > ,
354+ fx : & mut FunctionCx < ' _ , ' tcx , impl Module > ,
355355 start_block : Block ,
356356) {
357357 let ssa_analyzed = crate :: analyze:: analyze ( fx) ;
@@ -488,7 +488,7 @@ pub(crate) fn codegen_fn_prelude<'tcx>(
488488}
489489
490490pub ( crate ) fn codegen_terminator_call < ' tcx > (
491- fx : & mut FunctionCx < ' _ , ' tcx , impl Backend > ,
491+ fx : & mut FunctionCx < ' _ , ' tcx , impl Module > ,
492492 span : Span ,
493493 current_block : Block ,
494494 func : & Operand < ' tcx > ,
@@ -701,7 +701,7 @@ pub(crate) fn codegen_terminator_call<'tcx>(
701701}
702702
703703pub ( crate ) fn codegen_drop < ' tcx > (
704- fx : & mut FunctionCx < ' _ , ' tcx , impl Backend > ,
704+ fx : & mut FunctionCx < ' _ , ' tcx , impl Module > ,
705705 span : Span ,
706706 drop_place : CPlace < ' tcx > ,
707707) {
0 commit comments