@@ -80,8 +80,8 @@ pub fn gather_loans(bccx: @BorrowckCtxt,
8080 bccx : bccx,
8181 id_range : id_range:: max ( ) ,
8282 all_loans : @mut ~[ ] ,
83- item_ub : body. node . id ,
84- repeating_ids : ~[ body. node . id ] ,
83+ item_ub : body. id ,
84+ repeating_ids : ~[ body. id ] ,
8585 move_data : @mut MoveData :: new ( )
8686 } ;
8787 glcx. gather_fn_arg_patterns ( decl, body) ;
@@ -123,9 +123,9 @@ fn gather_loans_in_fn(fk: &visit::fn_kind,
123123
124124 // Visit closures as part of the containing item.
125125 & visit:: fk_anon( * ) | & visit:: fk_fn_block( * ) => {
126- this. push_repeating_id ( body. node . id ) ;
126+ this. push_repeating_id ( body. id ) ;
127127 visit:: visit_fn ( fk, decl, body, sp, id, ( this, v) ) ;
128- this. pop_repeating_id ( body. node . id ) ;
128+ this. pop_repeating_id ( body. id ) ;
129129 this. gather_fn_arg_patterns ( decl, body) ;
130130 }
131131 }
@@ -134,7 +134,7 @@ fn gather_loans_in_fn(fk: &visit::fn_kind,
134134fn gather_loans_in_block ( blk : & ast:: blk ,
135135 ( this, vt) : ( @mut GatherLoanCtxt ,
136136 visit:: vt < @mut GatherLoanCtxt > ) ) {
137- this. id_range . add ( blk. node . id ) ;
137+ this. id_range . add ( blk. id ) ;
138138 visit:: visit_block ( blk, ( this, vt) ) ;
139139}
140140
@@ -240,7 +240,7 @@ fn gather_loans_in_expr(ex: @ast::expr,
240240 let cmt = this. bccx. cat_expr( ex_v) ;
241241 for arms. iter( ) . advance |arm| {
242242 for arm. pats. iter( ) . advance |pat| {
243- this. gather_pat( cmt, * pat, Some ( ( arm. body. node . id, ex. id) ) ) ;
243+ this. gather_pat( cmt, * pat, Some ( ( arm. body. id, ex. id) ) ) ;
244244 }
245245 }
246246 visit:: visit_expr( ex, ( this, vt) ) ;
@@ -268,16 +268,16 @@ fn gather_loans_in_expr(ex: @ast::expr,
268268 this. pop_repeating_id( cond. id) ;
269269
270270 // during body, can only root for the body
271- this. push_repeating_id( body. node . id) ;
271+ this. push_repeating_id( body. id) ;
272272 ( vt. visit_block) ( body, ( this, vt) ) ;
273- this. pop_repeating_id( body. node . id) ;
273+ this. pop_repeating_id( body. id) ;
274274 }
275275
276276 // see explanation attached to the `root_ub` field:
277277 ast:: expr_loop( ref body, _) => {
278- this. push_repeating_id( body. node . id) ;
278+ this. push_repeating_id( body. id) ;
279279 visit:: visit_expr( ex, ( this, vt) ) ;
280- this. pop_repeating_id( body. node . id) ;
280+ this. pop_repeating_id( body. id) ;
281281 }
282282
283283 ast:: expr_fn_block( * ) => {
@@ -623,7 +623,7 @@ impl GatherLoanCtxt {
623623 let arg_cmt = mc_ctxt. cat_rvalue(
624624 arg. id,
625625 arg. pat. span,
626- body. node . id, // Arguments live only as long as the fn body.
626+ body. id, // Arguments live only as long as the fn body.
627627 arg_ty) ;
628628
629629 self . gather_pat( arg_cmt, arg. pat, None ) ;
0 commit comments