@@ -46,7 +46,7 @@ impl<'a, 'tcx> TerminatorCodegenHelper<'a, 'tcx> {
46
46
fn lltarget < ' b , ' c , Bx : BuilderMethods < ' b , ' tcx > > (
47
47
& self ,
48
48
fx : & ' c mut FunctionCx < ' b , ' tcx , Bx > ,
49
- target : mir:: BasicBlock
49
+ target : mir:: BasicBlock ,
50
50
) -> ( Bx :: BasicBlock , bool ) {
51
51
let span = self . terminator . source_info . span ;
52
52
let lltarget = fx. blocks [ target] ;
@@ -66,7 +66,7 @@ impl<'a, 'tcx> TerminatorCodegenHelper<'a, 'tcx> {
66
66
fn llblock < ' c , ' b , Bx : BuilderMethods < ' b , ' tcx > > (
67
67
& self ,
68
68
fx : & ' c mut FunctionCx < ' b , ' tcx , Bx > ,
69
- target : mir:: BasicBlock
69
+ target : mir:: BasicBlock ,
70
70
) -> Bx :: BasicBlock {
71
71
let ( lltarget, is_cleanupret) = self . lltarget ( fx, target) ;
72
72
if is_cleanupret {
@@ -153,7 +153,7 @@ impl<'a, 'tcx> TerminatorCodegenHelper<'a, 'tcx> {
153
153
// a loop.
154
154
fn maybe_sideeffect < ' b , ' tcx2 : ' b , Bx : BuilderMethods < ' b , ' tcx2 > > (
155
155
& self ,
156
- mir : mir:: ReadOnlyBodyCache < ' _ , ' tcx > ,
156
+ mir : mir:: ReadOnlyBodyCache < ' b , ' tcx > ,
157
157
bx : & mut Bx ,
158
158
targets : & [ mir:: BasicBlock ] ,
159
159
) {
@@ -173,9 +173,9 @@ impl<'a, 'tcx> TerminatorCodegenHelper<'a, 'tcx> {
173
173
/// Codegen implementations for some terminator variants.
174
174
impl < ' a , ' tcx , Bx : BuilderMethods < ' a , ' tcx > > FunctionCx < ' a , ' tcx , Bx > {
175
175
/// Generates code for a `Resume` terminator.
176
- fn codegen_resume_terminator < ' c > (
176
+ fn codegen_resume_terminator < ' b > (
177
177
& mut self ,
178
- helper : TerminatorCodegenHelper < ' c , ' tcx > ,
178
+ helper : TerminatorCodegenHelper < ' b , ' tcx > ,
179
179
mut bx : Bx ,
180
180
) {
181
181
if let Some ( funclet) = helper. funclet ( self ) {
@@ -201,9 +201,9 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
201
201
}
202
202
}
203
203
204
- fn codegen_switchint_terminator < ' c > (
204
+ fn codegen_switchint_terminator < ' b > (
205
205
& mut self ,
206
- helper : TerminatorCodegenHelper < ' c , ' tcx > ,
206
+ helper : TerminatorCodegenHelper < ' b , ' tcx > ,
207
207
mut bx : Bx ,
208
208
discr : & mir:: Operand < ' tcx > ,
209
209
switch_ty : Ty < ' tcx > ,
@@ -316,9 +316,9 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
316
316
}
317
317
318
318
319
- fn codegen_drop_terminator < ' c > (
319
+ fn codegen_drop_terminator < ' b > (
320
320
& mut self ,
321
- helper : TerminatorCodegenHelper < ' c , ' tcx > ,
321
+ helper : TerminatorCodegenHelper < ' b , ' tcx > ,
322
322
mut bx : Bx ,
323
323
location : & mir:: Place < ' tcx > ,
324
324
target : mir:: BasicBlock ,
@@ -367,9 +367,9 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
367
367
unwind) ;
368
368
}
369
369
370
- fn codegen_assert_terminator < ' c > (
370
+ fn codegen_assert_terminator < ' b > (
371
371
& mut self ,
372
- helper : TerminatorCodegenHelper < ' c , ' tcx > ,
372
+ helper : TerminatorCodegenHelper < ' b , ' tcx > ,
373
373
mut bx : Bx ,
374
374
terminator : & mir:: Terminator < ' tcx > ,
375
375
cond : & mir:: Operand < ' tcx > ,
@@ -446,9 +446,9 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
446
446
helper. do_call ( self , & mut bx, fn_abi, llfn, & args, None , cleanup) ;
447
447
}
448
448
449
- fn codegen_call_terminator < ' c > (
449
+ fn codegen_call_terminator < ' b > (
450
450
& mut self ,
451
- helper : TerminatorCodegenHelper < ' c , ' tcx > ,
451
+ helper : TerminatorCodegenHelper < ' b , ' tcx > ,
452
452
mut bx : Bx ,
453
453
terminator : & mir:: Terminator < ' tcx > ,
454
454
func : & mir:: Operand < ' tcx > ,
@@ -581,7 +581,8 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
581
581
// Prepare the return value destination
582
582
let ret_dest = if let Some ( ( ref dest, _) ) = * destination {
583
583
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)
585
586
} else {
586
587
ReturnDest :: Nothing
587
588
} ;
@@ -805,7 +806,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
805
806
& mut self ,
806
807
mut bx : Bx ,
807
808
bb : mir:: BasicBlock ,
808
- terminator : & mir:: Terminator < ' tcx > ,
809
+ terminator : & mir:: Terminator < ' tcx >
809
810
) {
810
811
debug ! ( "codegen_terminator: {:?}" , terminator) ;
811
812
@@ -834,7 +835,8 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
834
835
mir:: TerminatorKind :: SwitchInt {
835
836
ref discr, switch_ty, ref values, ref targets
836
837
} => {
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) ;
838
840
}
839
841
840
842
mir:: TerminatorKind :: Return => {
@@ -1034,7 +1036,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
1034
1036
/// No-op in MSVC SEH scheme.
1035
1037
fn landing_pad_to (
1036
1038
& mut self ,
1037
- target_bb : mir:: BasicBlock ,
1039
+ target_bb : mir:: BasicBlock
1038
1040
) -> Bx :: BasicBlock {
1039
1041
if let Some ( block) = self . landing_pads [ target_bb] {
1040
1042
return block;
@@ -1103,7 +1105,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
1103
1105
bx : & mut Bx ,
1104
1106
dest : & mir:: Place < ' tcx > ,
1105
1107
fn_ret : & ArgAbi < ' tcx , Ty < ' tcx > > ,
1106
- llargs : & mut Vec < Bx :: Value > , is_intrinsic : bool ,
1108
+ llargs : & mut Vec < Bx :: Value > , is_intrinsic : bool
1107
1109
) -> ReturnDest < ' tcx , Bx :: Value > {
1108
1110
// If the return is ignored, we can just return a do-nothing `ReturnDest`.
1109
1111
if fn_ret. is_ignore ( ) {
0 commit comments