@@ -89,8 +89,8 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
8989 destination : Place < ' tcx > ,
9090 span : Span ,
9191 mut block : BasicBlock ,
92- scrutinee : & Expr < ' tcx > ,
93- arms : & [ Arm < ' tcx > ] ,
92+ scrutinee : & Expr < ' _ , ' tcx > ,
93+ arms : & [ Arm < ' _ , ' tcx > ] ,
9494 ) -> BlockAnd < ( ) > {
9595 let scrutinee_span = scrutinee. span ;
9696 let scrutinee_place =
@@ -119,7 +119,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
119119 fn lower_scrutinee (
120120 & mut self ,
121121 mut block : BasicBlock ,
122- scrutinee : & Expr < ' tcx > ,
122+ scrutinee : & Expr < ' _ , ' tcx > ,
123123 scrutinee_span : Span ,
124124 ) -> BlockAnd < Place < ' tcx > > {
125125 let scrutinee_place = unpack ! ( block = self . as_place( block, scrutinee) ) ;
@@ -149,8 +149,8 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
149149 fn create_match_candidates < ' pat > (
150150 & mut self ,
151151 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 > ) > {
154154 // Assemble a list of candidates: there is one candidate per pattern,
155155 // which means there may be more than one candidate *per arm*.
156156 arms. iter ( )
@@ -224,7 +224,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
224224 destination : Place < ' tcx > ,
225225 scrutinee_place : Place < ' tcx > ,
226226 scrutinee_span : Span ,
227- arm_candidates : Vec < ( & ' _ Arm < ' tcx > , Candidate < ' _ , ' tcx > ) > ,
227+ arm_candidates : Vec < ( & ' _ Arm < ' _ , ' tcx > , Candidate < ' _ , ' tcx > ) > ,
228228 outer_source_info : SourceInfo ,
229229 fake_borrow_temps : Vec < ( Place < ' tcx > , Local ) > ,
230230 ) -> BlockAnd < ( ) > {
@@ -285,7 +285,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
285285 & mut self ,
286286 outer_source_info : SourceInfo ,
287287 candidate : Candidate < ' _ , ' tcx > ,
288- guard : Option < & Guard < ' tcx > > ,
288+ guard : Option < & Guard < ' _ , ' tcx > > ,
289289 fake_borrow_temps : & Vec < ( Place < ' tcx > , Local ) > ,
290290 scrutinee_span : Span ,
291291 arm_span : Option < Span > ,
@@ -361,7 +361,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
361361 & mut self ,
362362 mut block : BasicBlock ,
363363 irrefutable_pat : Pat < ' tcx > ,
364- initializer : & Expr < ' tcx > ,
364+ initializer : & Expr < ' _ , ' tcx > ,
365365 ) -> BlockAnd < ( ) > {
366366 match * irrefutable_pat. kind {
367367 // Optimize the case of `let x = ...` to write directly into `x`
@@ -1612,7 +1612,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
16121612 & mut self ,
16131613 candidate : Candidate < ' pat , ' tcx > ,
16141614 parent_bindings : & [ ( Vec < Binding < ' tcx > > , Vec < Ascription < ' tcx > > ) ] ,
1615- guard : Option < & Guard < ' tcx > > ,
1615+ guard : Option < & Guard < ' _ , ' tcx > > ,
16161616 fake_borrows : & Vec < ( Place < ' tcx > , Local ) > ,
16171617 scrutinee_span : Span ,
16181618 arm_span : Option < Span > ,
0 commit comments