@@ -30,23 +30,22 @@ struct TerminatorCodegenHelper<'tcx> {
3030 funclet_bb : Option < mir:: BasicBlock > ,
3131}
3232
33- // FIXME(eddyb) clean up the lifetimes in this impl.
34- impl < ' tcx > TerminatorCodegenHelper < ' tcx > {
33+ impl < ' a , ' tcx > TerminatorCodegenHelper < ' tcx > {
3534 /// Returns the associated funclet from `FunctionCx::funclets` for the
3635 /// `funclet_bb` member if it is not `None`.
37- fn funclet < ' c , ' b , Bx : BuilderMethods < ' b , ' tcx > > (
36+ fn funclet < ' b , Bx : BuilderMethods < ' a , ' tcx > > (
3837 & self ,
39- fx : & ' c mut FunctionCx < ' b , ' tcx , Bx > ,
40- ) -> Option < & ' c Bx :: Funclet > {
38+ fx : & ' b mut FunctionCx < ' a , ' tcx , Bx > ,
39+ ) -> Option < & ' b Bx :: Funclet > {
4140 match self . funclet_bb {
4241 Some ( funcl) => fx. funclets [ funcl] . as_ref ( ) ,
4342 None => None ,
4443 }
4544 }
4645
47- fn lltarget < ' b , ' c , Bx : BuilderMethods < ' b , ' tcx > > (
46+ fn lltarget < Bx : BuilderMethods < ' a , ' tcx > > (
4847 & self ,
49- fx : & ' c mut FunctionCx < ' b , ' tcx , Bx > ,
48+ fx : & mut FunctionCx < ' a , ' tcx , Bx > ,
5049 target : mir:: BasicBlock ,
5150 ) -> ( Bx :: BasicBlock , bool ) {
5251 let span = self . terminator . source_info . span ;
@@ -64,9 +63,9 @@ impl<'tcx> TerminatorCodegenHelper<'tcx> {
6463 }
6564
6665 /// Create a basic block.
67- fn llblock < ' c , ' b , Bx : BuilderMethods < ' b , ' tcx > > (
66+ fn llblock < Bx : BuilderMethods < ' a , ' tcx > > (
6867 & self ,
69- fx : & ' c mut FunctionCx < ' b , ' tcx , Bx > ,
68+ fx : & mut FunctionCx < ' a , ' tcx , Bx > ,
7069 target : mir:: BasicBlock ,
7170 ) -> Bx :: BasicBlock {
7271 let ( lltarget, is_cleanupret) = self . lltarget ( fx, target) ;
@@ -84,9 +83,9 @@ impl<'tcx> TerminatorCodegenHelper<'tcx> {
8483 }
8584 }
8685
87- fn funclet_br < ' c , ' b , Bx : BuilderMethods < ' b , ' tcx > > (
86+ fn funclet_br < Bx : BuilderMethods < ' a , ' tcx > > (
8887 & self ,
89- fx : & ' c mut FunctionCx < ' b , ' tcx , Bx > ,
88+ fx : & mut FunctionCx < ' a , ' tcx , Bx > ,
9089 bx : & mut Bx ,
9190 target : mir:: BasicBlock ,
9291 ) {
@@ -102,9 +101,9 @@ impl<'tcx> TerminatorCodegenHelper<'tcx> {
102101
103102 /// Call `fn_ptr` of `fn_abi` with the arguments `llargs`, the optional
104103 /// return destination `destination` and the cleanup function `cleanup`.
105- fn do_call < ' c , ' b , Bx : BuilderMethods < ' b , ' tcx > > (
104+ fn do_call < Bx : BuilderMethods < ' a , ' tcx > > (
106105 & self ,
107- fx : & ' c mut FunctionCx < ' b , ' tcx , Bx > ,
106+ fx : & mut FunctionCx < ' a , ' tcx , Bx > ,
108107 bx : & mut Bx ,
109108 fn_abi : FnAbi < ' tcx , Ty < ' tcx > > ,
110109 fn_ptr : Bx :: Value ,
@@ -152,7 +151,7 @@ impl<'tcx> TerminatorCodegenHelper<'tcx> {
152151
153152 // Generate sideeffect intrinsic if jumping to any of the targets can form
154153 // a loop.
155- fn maybe_sideeffect < ' b , Bx : BuilderMethods < ' b , ' tcx > > (
154+ fn maybe_sideeffect < Bx : BuilderMethods < ' a , ' tcx > > (
156155 & self ,
157156 mir : & ' tcx mir:: Body < ' tcx > ,
158157 bx : & mut Bx ,
0 commit comments