@@ -46,7 +46,7 @@ impl<'a, 'tcx> TerminatorCodegenHelper<'a, 'tcx> {
4646 fn lltarget < ' b , ' c , Bx : BuilderMethods < ' b , ' tcx > > (
4747 & self ,
4848 fx : & ' c mut FunctionCx < ' b , ' tcx , Bx > ,
49- target : mir:: BasicBlock
49+ target : mir:: BasicBlock ,
5050 ) -> ( Bx :: BasicBlock , bool ) {
5151 let span = self . terminator . source_info . span ;
5252 let lltarget = fx. blocks [ target] ;
@@ -66,7 +66,7 @@ impl<'a, 'tcx> TerminatorCodegenHelper<'a, 'tcx> {
6666 fn llblock < ' c , ' b , Bx : BuilderMethods < ' b , ' tcx > > (
6767 & self ,
6868 fx : & ' c mut FunctionCx < ' b , ' tcx , Bx > ,
69- target : mir:: BasicBlock
69+ target : mir:: BasicBlock ,
7070 ) -> Bx :: BasicBlock {
7171 let ( lltarget, is_cleanupret) = self . lltarget ( fx, target) ;
7272 if is_cleanupret {
@@ -153,7 +153,7 @@ impl<'a, 'tcx> TerminatorCodegenHelper<'a, 'tcx> {
153153 // a loop.
154154 fn maybe_sideeffect < ' b , ' tcx2 : ' b , Bx : BuilderMethods < ' b , ' tcx2 > > (
155155 & self ,
156- mir : mir:: ReadOnlyBodyCache < ' _ , ' tcx > ,
156+ mir : mir:: ReadOnlyBodyCache < ' b , ' tcx > ,
157157 bx : & mut Bx ,
158158 targets : & [ mir:: BasicBlock ] ,
159159 ) {
@@ -173,9 +173,9 @@ impl<'a, 'tcx> TerminatorCodegenHelper<'a, 'tcx> {
173173/// Codegen implementations for some terminator variants.
174174impl < ' a , ' tcx , Bx : BuilderMethods < ' a , ' tcx > > FunctionCx < ' a , ' tcx , Bx > {
175175 /// Generates code for a `Resume` terminator.
176- fn codegen_resume_terminator < ' c > (
176+ fn codegen_resume_terminator < ' b > (
177177 & mut self ,
178- helper : TerminatorCodegenHelper < ' c , ' tcx > ,
178+ helper : TerminatorCodegenHelper < ' b , ' tcx > ,
179179 mut bx : Bx ,
180180 ) {
181181 if let Some ( funclet) = helper. funclet ( self ) {
@@ -201,9 +201,9 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
201201 }
202202 }
203203
204- fn codegen_switchint_terminator < ' c > (
204+ fn codegen_switchint_terminator < ' b > (
205205 & mut self ,
206- helper : TerminatorCodegenHelper < ' c , ' tcx > ,
206+ helper : TerminatorCodegenHelper < ' b , ' tcx > ,
207207 mut bx : Bx ,
208208 discr : & mir:: Operand < ' tcx > ,
209209 switch_ty : Ty < ' tcx > ,
@@ -316,9 +316,9 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
316316 }
317317
318318
319- fn codegen_drop_terminator < ' c > (
319+ fn codegen_drop_terminator < ' b > (
320320 & mut self ,
321- helper : TerminatorCodegenHelper < ' c , ' tcx > ,
321+ helper : TerminatorCodegenHelper < ' b , ' tcx > ,
322322 mut bx : Bx ,
323323 location : & mir:: Place < ' tcx > ,
324324 target : mir:: BasicBlock ,
@@ -367,9 +367,9 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
367367 unwind) ;
368368 }
369369
370- fn codegen_assert_terminator < ' c > (
370+ fn codegen_assert_terminator < ' b > (
371371 & mut self ,
372- helper : TerminatorCodegenHelper < ' c , ' tcx > ,
372+ helper : TerminatorCodegenHelper < ' b , ' tcx > ,
373373 mut bx : Bx ,
374374 terminator : & mir:: Terminator < ' tcx > ,
375375 cond : & mir:: Operand < ' tcx > ,
@@ -446,9 +446,9 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
446446 helper. do_call ( self , & mut bx, fn_abi, llfn, & args, None , cleanup) ;
447447 }
448448
449- fn codegen_call_terminator < ' c > (
449+ fn codegen_call_terminator < ' b > (
450450 & mut self ,
451- helper : TerminatorCodegenHelper < ' c , ' tcx > ,
451+ helper : TerminatorCodegenHelper < ' b , ' tcx > ,
452452 mut bx : Bx ,
453453 terminator : & mir:: Terminator < ' tcx > ,
454454 func : & mir:: Operand < ' tcx > ,
@@ -581,7 +581,8 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
581581 // Prepare the return value destination
582582 let ret_dest = if let Some ( ( ref dest, _) ) = * destination {
583583 let is_intrinsic = intrinsic. is_some ( ) ;
584- self . make_return_dest ( & mut bx, dest, & fn_abi. ret , & mut llargs, is_intrinsic)
584+ self . make_return_dest ( & mut bx, dest, & fn_abi. ret , & mut llargs,
585+ is_intrinsic)
585586 } else {
586587 ReturnDest :: Nothing
587588 } ;
@@ -805,7 +806,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
805806 & mut self ,
806807 mut bx : Bx ,
807808 bb : mir:: BasicBlock ,
808- terminator : & mir:: Terminator < ' tcx > ,
809+ terminator : & mir:: Terminator < ' tcx >
809810 ) {
810811 debug ! ( "codegen_terminator: {:?}" , terminator) ;
811812
@@ -834,7 +835,8 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
834835 mir:: TerminatorKind :: SwitchInt {
835836 ref discr, switch_ty, ref values, ref targets
836837 } => {
837- self . codegen_switchint_terminator ( helper, bx, discr, switch_ty, values, targets) ;
838+ self . codegen_switchint_terminator ( helper, bx, discr, switch_ty,
839+ values, targets) ;
838840 }
839841
840842 mir:: TerminatorKind :: Return => {
@@ -1034,7 +1036,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
10341036 /// No-op in MSVC SEH scheme.
10351037 fn landing_pad_to (
10361038 & mut self ,
1037- target_bb : mir:: BasicBlock ,
1039+ target_bb : mir:: BasicBlock
10381040 ) -> Bx :: BasicBlock {
10391041 if let Some ( block) = self . landing_pads [ target_bb] {
10401042 return block;
@@ -1103,7 +1105,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
11031105 bx : & mut Bx ,
11041106 dest : & mir:: Place < ' tcx > ,
11051107 fn_ret : & ArgAbi < ' tcx , Ty < ' tcx > > ,
1106- llargs : & mut Vec < Bx :: Value > , is_intrinsic : bool ,
1108+ llargs : & mut Vec < Bx :: Value > , is_intrinsic : bool
11071109 ) -> ReturnDest < ' tcx , Bx :: Value > {
11081110 // If the return is ignored, we can just return a do-nothing `ReturnDest`.
11091111 if fn_ret. is_ignore ( ) {
0 commit comments