@@ -2660,7 +2660,7 @@ impl<'a> LoweringContext<'a> {
2660
2660
2661
2661
for ( index, stmt) in b. stmts . iter ( ) . enumerate ( ) {
2662
2662
if index == b. stmts . len ( ) - 1 {
2663
- if let StmtKind :: Expr ( ref e) = stmt. node {
2663
+ if let StmtKind :: Expr ( ref e) = stmt. kind {
2664
2664
expr = Some ( P ( self . lower_expr ( e) ) ) ;
2665
2665
} else {
2666
2666
stmts. extend ( self . lower_stmt ( stmt) ) ;
@@ -2931,7 +2931,7 @@ impl<'a> LoweringContext<'a> {
2931
2931
}
2932
2932
2933
2933
fn lower_stmt ( & mut self , s : & Stmt ) -> SmallVec < [ hir:: Stmt ; 1 ] > {
2934
- let node = match s. node {
2934
+ let kind = match s. kind {
2935
2935
StmtKind :: Local ( ref l) => {
2936
2936
let ( l, item_ids) = self . lower_local ( l) ;
2937
2937
let mut ids: SmallVec < [ hir:: Stmt ; 1 ] > = item_ids
@@ -2944,7 +2944,7 @@ impl<'a> LoweringContext<'a> {
2944
2944
ids. push ( {
2945
2945
hir:: Stmt {
2946
2946
hir_id : self . lower_node_id ( s. id ) ,
2947
- node : hir:: StmtKind :: Local ( P ( l) ) ,
2947
+ kind : hir:: StmtKind :: Local ( P ( l) ) ,
2948
2948
span : s. span ,
2949
2949
}
2950
2950
} ) ;
@@ -2962,7 +2962,7 @@ impl<'a> LoweringContext<'a> {
2962
2962
2963
2963
hir:: Stmt {
2964
2964
hir_id,
2965
- node : hir:: StmtKind :: Item ( item_id) ,
2965
+ kind : hir:: StmtKind :: Item ( item_id) ,
2966
2966
span : s. span ,
2967
2967
}
2968
2968
} )
@@ -2974,7 +2974,7 @@ impl<'a> LoweringContext<'a> {
2974
2974
} ;
2975
2975
smallvec ! [ hir:: Stmt {
2976
2976
hir_id: self . lower_node_id( s. id) ,
2977
- node ,
2977
+ kind ,
2978
2978
span: s. span,
2979
2979
} ]
2980
2980
}
@@ -3011,8 +3011,8 @@ impl<'a> LoweringContext<'a> {
3011
3011
3012
3012
// Helper methods for building HIR.
3013
3013
3014
- fn stmt ( & mut self , span : Span , node : hir:: StmtKind ) -> hir:: Stmt {
3015
- hir:: Stmt { span, node , hir_id : self . next_id ( ) }
3014
+ fn stmt ( & mut self , span : Span , kind : hir:: StmtKind ) -> hir:: Stmt {
3015
+ hir:: Stmt { span, kind , hir_id : self . next_id ( ) }
3016
3016
}
3017
3017
3018
3018
fn stmt_expr ( & mut self , span : Span , expr : hir:: Expr ) -> hir:: Stmt {
0 commit comments