@@ -46,17 +46,17 @@ enum CallKind {
4646
4747/// Used by `FunctionCx::codegen_terminator` for emitting common patterns
4848/// e.g., creating a basic block, calling a function, etc.
49- struct TerminatorCodegenHelper < ' tcx > {
49+ struct TerminatorCodegenHelper < ' mir , ' tcx > {
5050 bb : mir:: BasicBlock ,
51- terminator : & ' tcx mir:: Terminator < ' tcx > ,
51+ terminator : & ' mir mir:: Terminator < ' tcx > ,
5252}
5353
54- impl < ' a , ' tcx > TerminatorCodegenHelper < ' tcx > {
54+ impl < ' a , ' tcx > TerminatorCodegenHelper < ' _ , ' tcx > {
5555 /// Returns the appropriate `Funclet` for the current funclet, if on MSVC,
5656 /// either already previously cached, or newly created, by `landing_pad_for`.
5757 fn funclet < ' b , Bx : BuilderMethods < ' a , ' tcx > > (
5858 & self ,
59- fx : & ' b mut FunctionCx < ' a , ' tcx , Bx > ,
59+ fx : & ' b mut FunctionCx < ' _ , ' a , ' tcx , Bx > ,
6060 ) -> Option < & ' b Bx :: Funclet > {
6161 let cleanup_kinds = fx. cleanup_kinds . as_ref ( ) ?;
6262 let funclet_bb = cleanup_kinds[ self . bb ] . funclet_bb ( self . bb ) ?;
@@ -82,7 +82,7 @@ impl<'a, 'tcx> TerminatorCodegenHelper<'tcx> {
8282 /// stuff in it or next to it.
8383 fn llbb_with_cleanup < Bx : BuilderMethods < ' a , ' tcx > > (
8484 & self ,
85- fx : & mut FunctionCx < ' a , ' tcx , Bx > ,
85+ fx : & mut FunctionCx < ' _ , ' a , ' tcx , Bx > ,
8686 target : mir:: BasicBlock ,
8787 ) -> Bx :: BasicBlock {
8888 let ( needs_landing_pad, is_cleanupret) = self . llbb_characteristics ( fx, target) ;
@@ -106,7 +106,7 @@ impl<'a, 'tcx> TerminatorCodegenHelper<'tcx> {
106106
107107 fn llbb_characteristics < Bx : BuilderMethods < ' a , ' tcx > > (
108108 & self ,
109- fx : & mut FunctionCx < ' a , ' tcx , Bx > ,
109+ fx : & mut FunctionCx < ' _ , ' a , ' tcx , Bx > ,
110110 target : mir:: BasicBlock ,
111111 ) -> ( bool , bool ) {
112112 if let Some ( ref cleanup_kinds) = fx. cleanup_kinds {
@@ -131,7 +131,7 @@ impl<'a, 'tcx> TerminatorCodegenHelper<'tcx> {
131131
132132 fn funclet_br < Bx : BuilderMethods < ' a , ' tcx > > (
133133 & self ,
134- fx : & mut FunctionCx < ' a , ' tcx , Bx > ,
134+ fx : & mut FunctionCx < ' _ , ' a , ' tcx , Bx > ,
135135 bx : & mut Bx ,
136136 target : mir:: BasicBlock ,
137137 mergeable_succ : bool ,
@@ -160,7 +160,7 @@ impl<'a, 'tcx> TerminatorCodegenHelper<'tcx> {
160160 /// return destination `destination` and the unwind action `unwind`.
161161 fn do_call < Bx : BuilderMethods < ' a , ' tcx > > (
162162 & self ,
163- fx : & mut FunctionCx < ' a , ' tcx , Bx > ,
163+ fx : & mut FunctionCx < ' _ , ' a , ' tcx , Bx > ,
164164 bx : & mut Bx ,
165165 fn_abi : & ' tcx FnAbi < ' tcx , Ty < ' tcx > > ,
166166 fn_ptr : Bx :: Value ,
@@ -302,7 +302,7 @@ impl<'a, 'tcx> TerminatorCodegenHelper<'tcx> {
302302 /// Generates inline assembly with optional `destination` and `unwind`.
303303 fn do_inlineasm < Bx : BuilderMethods < ' a , ' tcx > > (
304304 & self ,
305- fx : & mut FunctionCx < ' a , ' tcx , Bx > ,
305+ fx : & mut FunctionCx < ' _ , ' a , ' tcx , Bx > ,
306306 bx : & mut Bx ,
307307 template : & [ InlineAsmTemplatePiece ] ,
308308 operands : & [ InlineAsmOperandRef < ' tcx , Bx > ] ,
@@ -369,9 +369,13 @@ impl<'a, 'tcx> TerminatorCodegenHelper<'tcx> {
369369}
370370
371371/// Codegen implementations for some terminator variants.
372- impl < ' a , ' tcx , Bx : BuilderMethods < ' a , ' tcx > > FunctionCx < ' a , ' tcx , Bx > {
372+ impl < ' a , ' tcx , Bx : BuilderMethods < ' a , ' tcx > > FunctionCx < ' _ , ' a , ' tcx , Bx > {
373373 /// Generates code for a `Resume` terminator.
374- fn codegen_resume_terminator ( & mut self , helper : TerminatorCodegenHelper < ' tcx > , bx : & mut Bx ) {
374+ fn codegen_resume_terminator (
375+ & mut self ,
376+ helper : TerminatorCodegenHelper < ' _ , ' tcx > ,
377+ bx : & mut Bx ,
378+ ) {
375379 if let Some ( funclet) = helper. funclet ( self ) {
376380 bx. cleanup_ret ( funclet, None ) ;
377381 } else {
@@ -388,7 +392,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
388392
389393 fn codegen_switchint_terminator (
390394 & mut self ,
391- helper : TerminatorCodegenHelper < ' tcx > ,
395+ helper : TerminatorCodegenHelper < ' _ , ' tcx > ,
392396 bx : & mut Bx ,
393397 discr : & mir:: Operand < ' tcx > ,
394398 targets : & SwitchTargets ,
@@ -600,7 +604,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
600604 #[ tracing:: instrument( level = "trace" , skip( self , helper, bx) ) ]
601605 fn codegen_drop_terminator (
602606 & mut self ,
603- helper : TerminatorCodegenHelper < ' tcx > ,
607+ helper : TerminatorCodegenHelper < ' _ , ' tcx > ,
604608 bx : & mut Bx ,
605609 source_info : & mir:: SourceInfo ,
606610 location : mir:: Place < ' tcx > ,
@@ -698,7 +702,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
698702
699703 fn codegen_assert_terminator (
700704 & mut self ,
701- helper : TerminatorCodegenHelper < ' tcx > ,
705+ helper : TerminatorCodegenHelper < ' _ , ' tcx > ,
702706 bx : & mut Bx ,
703707 terminator : & mir:: Terminator < ' tcx > ,
704708 cond : & mir:: Operand < ' tcx > ,
@@ -799,7 +803,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
799803
800804 fn codegen_terminate_terminator (
801805 & mut self ,
802- helper : TerminatorCodegenHelper < ' tcx > ,
806+ helper : TerminatorCodegenHelper < ' _ , ' tcx > ,
803807 bx : & mut Bx ,
804808 terminator : & mir:: Terminator < ' tcx > ,
805809 reason : UnwindTerminateReason ,
@@ -830,7 +834,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
830834 /// Returns `Some` if this is indeed a panic intrinsic and codegen is done.
831835 fn codegen_panic_intrinsic (
832836 & mut self ,
833- helper : & TerminatorCodegenHelper < ' tcx > ,
837+ helper : & TerminatorCodegenHelper < ' _ , ' tcx > ,
834838 bx : & mut Bx ,
835839 intrinsic : ty:: IntrinsicDef ,
836840 instance : Instance < ' tcx > ,
@@ -897,7 +901,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
897901
898902 fn codegen_call_terminator (
899903 & mut self ,
900- helper : TerminatorCodegenHelper < ' tcx > ,
904+ helper : TerminatorCodegenHelper < ' _ , ' tcx > ,
901905 bx : & mut Bx ,
902906 terminator : & mir:: Terminator < ' tcx > ,
903907 func : & mir:: Operand < ' tcx > ,
@@ -1399,7 +1403,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
13991403
14001404 fn codegen_asm_terminator (
14011405 & mut self ,
1402- helper : TerminatorCodegenHelper < ' tcx > ,
1406+ helper : TerminatorCodegenHelper < ' _ , ' tcx > ,
14031407 bx : & mut Bx ,
14041408 asm_macro : InlineAsmMacro ,
14051409 terminator : & mir:: Terminator < ' tcx > ,
@@ -1524,7 +1528,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
15241528 & mut self ,
15251529 bx : & mut Bx ,
15261530 bb : mir:: BasicBlock ,
1527- terminator : & ' tcx mir:: Terminator < ' tcx > ,
1531+ terminator : & mir:: Terminator < ' tcx > ,
15281532 ) -> MergingSucc {
15291533 debug ! ( "codegen_terminator: {:?}" , terminator) ;
15301534
0 commit comments