@@ -89,8 +89,8 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
89
89
destination : Place < ' tcx > ,
90
90
span : Span ,
91
91
mut block : BasicBlock ,
92
- scrutinee : & Expr < ' tcx > ,
93
- arms : & [ Arm < ' tcx > ] ,
92
+ scrutinee : & Expr < ' _ , ' tcx > ,
93
+ arms : & [ Arm < ' _ , ' tcx > ] ,
94
94
) -> BlockAnd < ( ) > {
95
95
let scrutinee_span = scrutinee. span ;
96
96
let scrutinee_place =
@@ -119,7 +119,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
119
119
fn lower_scrutinee (
120
120
& mut self ,
121
121
mut block : BasicBlock ,
122
- scrutinee : & Expr < ' tcx > ,
122
+ scrutinee : & Expr < ' _ , ' tcx > ,
123
123
scrutinee_span : Span ,
124
124
) -> BlockAnd < Place < ' tcx > > {
125
125
let scrutinee_place = unpack ! ( block = self . as_place( block, scrutinee) ) ;
@@ -149,8 +149,8 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
149
149
fn create_match_candidates < ' pat > (
150
150
& mut self ,
151
151
scrutinee : Place < ' tcx > ,
152
- arms : & ' pat [ Arm < ' tcx > ] ,
153
- ) -> Vec < ( & ' pat Arm < ' tcx > , Candidate < ' pat , ' tcx > ) > {
152
+ arms : & ' pat [ Arm < ' pat , ' tcx > ] ,
153
+ ) -> Vec < ( & ' pat Arm < ' pat , ' tcx > , Candidate < ' pat , ' tcx > ) > {
154
154
// Assemble a list of candidates: there is one candidate per pattern,
155
155
// which means there may be more than one candidate *per arm*.
156
156
arms. iter ( )
@@ -224,7 +224,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
224
224
destination : Place < ' tcx > ,
225
225
scrutinee_place : Place < ' tcx > ,
226
226
scrutinee_span : Span ,
227
- arm_candidates : Vec < ( & ' _ Arm < ' tcx > , Candidate < ' _ , ' tcx > ) > ,
227
+ arm_candidates : Vec < ( & ' _ Arm < ' _ , ' tcx > , Candidate < ' _ , ' tcx > ) > ,
228
228
outer_source_info : SourceInfo ,
229
229
fake_borrow_temps : Vec < ( Place < ' tcx > , Local ) > ,
230
230
) -> BlockAnd < ( ) > {
@@ -285,7 +285,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
285
285
& mut self ,
286
286
outer_source_info : SourceInfo ,
287
287
candidate : Candidate < ' _ , ' tcx > ,
288
- guard : Option < & Guard < ' tcx > > ,
288
+ guard : Option < & Guard < ' _ , ' tcx > > ,
289
289
fake_borrow_temps : & Vec < ( Place < ' tcx > , Local ) > ,
290
290
scrutinee_span : Span ,
291
291
arm_span : Option < Span > ,
@@ -361,7 +361,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
361
361
& mut self ,
362
362
mut block : BasicBlock ,
363
363
irrefutable_pat : Pat < ' tcx > ,
364
- initializer : & Expr < ' tcx > ,
364
+ initializer : & Expr < ' _ , ' tcx > ,
365
365
) -> BlockAnd < ( ) > {
366
366
match * irrefutable_pat. kind {
367
367
// Optimize the case of `let x = ...` to write directly into `x`
@@ -1612,7 +1612,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
1612
1612
& mut self ,
1613
1613
candidate : Candidate < ' pat , ' tcx > ,
1614
1614
parent_bindings : & [ ( Vec < Binding < ' tcx > > , Vec < Ascription < ' tcx > > ) ] ,
1615
- guard : Option < & Guard < ' tcx > > ,
1615
+ guard : Option < & Guard < ' _ , ' tcx > > ,
1616
1616
fake_borrows : & Vec < ( Place < ' tcx > , Local ) > ,
1617
1617
scrutinee_span : Span ,
1618
1618
arm_span : Option < Span > ,
0 commit comments