@@ -2660,7 +2660,7 @@ impl<'a> LoweringContext<'a> {
26602660
26612661 for ( index, stmt) in b. stmts . iter ( ) . enumerate ( ) {
26622662 if index == b. stmts . len ( ) - 1 {
2663- if let StmtKind :: Expr ( ref e) = stmt. node {
2663+ if let StmtKind :: Expr ( ref e) = stmt. kind {
26642664 expr = Some ( P ( self . lower_expr ( e) ) ) ;
26652665 } else {
26662666 stmts. extend ( self . lower_stmt ( stmt) ) ;
@@ -2931,7 +2931,7 @@ impl<'a> LoweringContext<'a> {
29312931 }
29322932
29332933 fn lower_stmt ( & mut self , s : & Stmt ) -> SmallVec < [ hir:: Stmt ; 1 ] > {
2934- let node = match s. node {
2934+ let kind = match s. kind {
29352935 StmtKind :: Local ( ref l) => {
29362936 let ( l, item_ids) = self . lower_local ( l) ;
29372937 let mut ids: SmallVec < [ hir:: Stmt ; 1 ] > = item_ids
@@ -2944,7 +2944,7 @@ impl<'a> LoweringContext<'a> {
29442944 ids. push ( {
29452945 hir:: Stmt {
29462946 hir_id : self . lower_node_id ( s. id ) ,
2947- node : hir:: StmtKind :: Local ( P ( l) ) ,
2947+ kind : hir:: StmtKind :: Local ( P ( l) ) ,
29482948 span : s. span ,
29492949 }
29502950 } ) ;
@@ -2962,7 +2962,7 @@ impl<'a> LoweringContext<'a> {
29622962
29632963 hir:: Stmt {
29642964 hir_id,
2965- node : hir:: StmtKind :: Item ( item_id) ,
2965+ kind : hir:: StmtKind :: Item ( item_id) ,
29662966 span : s. span ,
29672967 }
29682968 } )
@@ -2974,7 +2974,7 @@ impl<'a> LoweringContext<'a> {
29742974 } ;
29752975 smallvec ! [ hir:: Stmt {
29762976 hir_id: self . lower_node_id( s. id) ,
2977- node ,
2977+ kind ,
29782978 span: s. span,
29792979 } ]
29802980 }
@@ -3011,8 +3011,8 @@ impl<'a> LoweringContext<'a> {
30113011
30123012 // Helper methods for building HIR.
30133013
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 ( ) }
30163016 }
30173017
30183018 fn stmt_expr ( & mut self , span : Span , expr : hir:: Expr ) -> hir:: Stmt {
0 commit comments