@@ -30,23 +30,22 @@ struct TerminatorCodegenHelper<'tcx> {
30
30
funclet_bb : Option < mir:: BasicBlock > ,
31
31
}
32
32
33
- // FIXME(eddyb) clean up the lifetimes in this impl.
34
- impl < ' tcx > TerminatorCodegenHelper < ' tcx > {
33
+ impl < ' a , ' tcx > TerminatorCodegenHelper < ' tcx > {
35
34
/// Returns the associated funclet from `FunctionCx::funclets` for the
36
35
/// `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 > > (
38
37
& 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 > {
41
40
match self . funclet_bb {
42
41
Some ( funcl) => fx. funclets [ funcl] . as_ref ( ) ,
43
42
None => None ,
44
43
}
45
44
}
46
45
47
- fn lltarget < ' b , ' c , Bx : BuilderMethods < ' b , ' tcx > > (
46
+ fn lltarget < Bx : BuilderMethods < ' a , ' tcx > > (
48
47
& self ,
49
- fx : & ' c mut FunctionCx < ' b , ' tcx , Bx > ,
48
+ fx : & mut FunctionCx < ' a , ' tcx , Bx > ,
50
49
target : mir:: BasicBlock ,
51
50
) -> ( Bx :: BasicBlock , bool ) {
52
51
let span = self . terminator . source_info . span ;
@@ -64,9 +63,9 @@ impl<'tcx> TerminatorCodegenHelper<'tcx> {
64
63
}
65
64
66
65
/// Create a basic block.
67
- fn llblock < ' c , ' b , Bx : BuilderMethods < ' b , ' tcx > > (
66
+ fn llblock < Bx : BuilderMethods < ' a , ' tcx > > (
68
67
& self ,
69
- fx : & ' c mut FunctionCx < ' b , ' tcx , Bx > ,
68
+ fx : & mut FunctionCx < ' a , ' tcx , Bx > ,
70
69
target : mir:: BasicBlock ,
71
70
) -> Bx :: BasicBlock {
72
71
let ( lltarget, is_cleanupret) = self . lltarget ( fx, target) ;
@@ -84,9 +83,9 @@ impl<'tcx> TerminatorCodegenHelper<'tcx> {
84
83
}
85
84
}
86
85
87
- fn funclet_br < ' c , ' b , Bx : BuilderMethods < ' b , ' tcx > > (
86
+ fn funclet_br < Bx : BuilderMethods < ' a , ' tcx > > (
88
87
& self ,
89
- fx : & ' c mut FunctionCx < ' b , ' tcx , Bx > ,
88
+ fx : & mut FunctionCx < ' a , ' tcx , Bx > ,
90
89
bx : & mut Bx ,
91
90
target : mir:: BasicBlock ,
92
91
) {
@@ -102,9 +101,9 @@ impl<'tcx> TerminatorCodegenHelper<'tcx> {
102
101
103
102
/// Call `fn_ptr` of `fn_abi` with the arguments `llargs`, the optional
104
103
/// 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 > > (
106
105
& self ,
107
- fx : & ' c mut FunctionCx < ' b , ' tcx , Bx > ,
106
+ fx : & mut FunctionCx < ' a , ' tcx , Bx > ,
108
107
bx : & mut Bx ,
109
108
fn_abi : FnAbi < ' tcx , Ty < ' tcx > > ,
110
109
fn_ptr : Bx :: Value ,
@@ -152,7 +151,7 @@ impl<'tcx> TerminatorCodegenHelper<'tcx> {
152
151
153
152
// Generate sideeffect intrinsic if jumping to any of the targets can form
154
153
// a loop.
155
- fn maybe_sideeffect < ' b , Bx : BuilderMethods < ' b , ' tcx > > (
154
+ fn maybe_sideeffect < Bx : BuilderMethods < ' a , ' tcx > > (
156
155
& self ,
157
156
mir : & ' tcx mir:: Body < ' tcx > ,
158
157
bx : & mut Bx ,
0 commit comments