@@ -129,7 +129,7 @@ fn resolve_block<'tcx>(visitor: &mut RegionResolutionVisitor<'tcx>, blk: &'tcx h
129129 let mut prev_cx = visitor. cx ;
130130
131131 visitor. enter_scope ( Scope {
132- id : blk. hir_id . local_id ,
132+ local_id : blk. hir_id . local_id ,
133133 data : ScopeData :: Remainder ( FirstStatementIndex :: new ( i) ) ,
134134 } ) ;
135135 visitor. cx . var_parent = visitor. cx . parent ;
@@ -154,7 +154,7 @@ fn resolve_block<'tcx>(visitor: &mut RegionResolutionVisitor<'tcx>, blk: &'tcx h
154154 // the first such subscope, which has the block itself as a
155155 // parent.
156156 visitor. enter_scope ( Scope {
157- id : blk. hir_id . local_id ,
157+ local_id : blk. hir_id . local_id ,
158158 data : ScopeData :: Remainder ( FirstStatementIndex :: new ( i) ) ,
159159 } ) ;
160160 visitor. cx . var_parent = visitor. cx . parent ;
@@ -184,7 +184,7 @@ fn resolve_block<'tcx>(visitor: &mut RegionResolutionVisitor<'tcx>, blk: &'tcx h
184184 visitor
185185 . scope_tree
186186 . backwards_incompatible_scope
187- . insert ( local_id, Scope { id : local_id, data : ScopeData :: Node } ) ;
187+ . insert ( local_id, Scope { local_id, data : ScopeData :: Node } ) ;
188188 }
189189 visitor. visit_expr ( tail_expr) ;
190190 }
@@ -221,7 +221,7 @@ fn resolve_arm<'tcx>(visitor: &mut RegionResolutionVisitor<'tcx>, arm: &'tcx hir
221221}
222222
223223fn resolve_pat < ' tcx > ( visitor : & mut RegionResolutionVisitor < ' tcx > , pat : & ' tcx hir:: Pat < ' tcx > ) {
224- visitor. record_child_scope ( Scope { id : pat. hir_id . local_id , data : ScopeData :: Node } ) ;
224+ visitor. record_child_scope ( Scope { local_id : pat. hir_id . local_id , data : ScopeData :: Node } ) ;
225225
226226 // If this is a binding then record the lifetime of that binding.
227227 if let PatKind :: Binding ( ..) = pat. kind {
@@ -485,7 +485,7 @@ fn resolve_expr<'tcx>(visitor: &mut RegionResolutionVisitor<'tcx>, expr: &'tcx h
485485 } else {
486486 ScopeData :: IfThen
487487 } ;
488- visitor. enter_scope ( Scope { id : then. hir_id . local_id , data } ) ;
488+ visitor. enter_scope ( Scope { local_id : then. hir_id . local_id , data } ) ;
489489 visitor. cx . var_parent = visitor. cx . parent ;
490490 visitor. visit_expr ( cond) ;
491491 visitor. visit_expr ( then) ;
@@ -500,7 +500,7 @@ fn resolve_expr<'tcx>(visitor: &mut RegionResolutionVisitor<'tcx>, expr: &'tcx h
500500 } else {
501501 ScopeData :: IfThen
502502 } ;
503- visitor. enter_scope ( Scope { id : then. hir_id . local_id , data } ) ;
503+ visitor. enter_scope ( Scope { local_id : then. hir_id . local_id , data } ) ;
504504 visitor. cx . var_parent = visitor. cx . parent ;
505505 visitor. visit_expr ( cond) ;
506506 visitor. visit_expr ( then) ;
@@ -516,7 +516,7 @@ fn resolve_expr<'tcx>(visitor: &mut RegionResolutionVisitor<'tcx>, expr: &'tcx h
516516
517517 if let hir:: ExprKind :: Yield ( _, source) = & expr. kind {
518518 // Mark this expr's scope and all parent scopes as containing `yield`.
519- let mut scope = Scope { id : expr. hir_id . local_id , data : ScopeData :: Node } ;
519+ let mut scope = Scope { local_id : expr. hir_id . local_id , data : ScopeData :: Node } ;
520520 loop {
521521 let span = match expr. kind {
522522 hir:: ExprKind :: Yield ( expr, hir:: YieldSource :: Await { .. } ) => {
@@ -803,9 +803,9 @@ impl<'tcx> RegionResolutionVisitor<'tcx> {
803803 // account for the destruction scope representing the scope of
804804 // the destructors that run immediately after it completes.
805805 if self . terminating_scopes . contains ( & id) {
806- self . enter_scope ( Scope { id, data : ScopeData :: Destruction } ) ;
806+ self . enter_scope ( Scope { local_id : id, data : ScopeData :: Destruction } ) ;
807807 }
808- self . enter_scope ( Scope { id, data : ScopeData :: Node } ) ;
808+ self . enter_scope ( Scope { local_id : id, data : ScopeData :: Node } ) ;
809809 }
810810
811811 fn enter_body ( & mut self , hir_id : hir:: HirId , f : impl FnOnce ( & mut Self ) ) {
@@ -822,8 +822,8 @@ impl<'tcx> RegionResolutionVisitor<'tcx> {
822822 let outer_pessimistic_yield = mem:: replace ( & mut self . pessimistic_yield , false ) ;
823823 self . terminating_scopes . insert ( hir_id. local_id ) ;
824824
825- self . enter_scope ( Scope { id : hir_id. local_id , data : ScopeData :: CallSite } ) ;
826- self . enter_scope ( Scope { id : hir_id. local_id , data : ScopeData :: Arguments } ) ;
825+ self . enter_scope ( Scope { local_id : hir_id. local_id , data : ScopeData :: CallSite } ) ;
826+ self . enter_scope ( Scope { local_id : hir_id. local_id , data : ScopeData :: Arguments } ) ;
827827
828828 f ( self ) ;
829829
0 commit comments