@@ -4427,9 +4427,8 @@ impl<'a> LoweringContext<'a> {
4427
4427
ThinVec :: new ( ) ,
4428
4428
) )
4429
4429
} ;
4430
- let LoweredNodeId { node_id, hir_id } = self . next_id ( ) ;
4430
+ let LoweredNodeId { node_id : _ , hir_id } = self . next_id ( ) ;
4431
4431
let match_stmt = hir:: Stmt {
4432
- id : node_id,
4433
4432
hir_id,
4434
4433
node : hir:: StmtKind :: Expr ( match_expr) ,
4435
4434
span : head_sp,
@@ -4456,9 +4455,8 @@ impl<'a> LoweringContext<'a> {
4456
4455
4457
4456
let body_block = self . with_loop_scope ( e. id , |this| this. lower_block ( body, false ) ) ;
4458
4457
let body_expr = P ( self . expr_block ( body_block, ThinVec :: new ( ) ) ) ;
4459
- let LoweredNodeId { node_id, hir_id } = self . next_id ( ) ;
4458
+ let LoweredNodeId { node_id : _ , hir_id } = self . next_id ( ) ;
4460
4459
let body_stmt = hir:: Stmt {
4461
- id : node_id,
4462
4460
hir_id,
4463
4461
node : hir:: StmtKind :: Expr ( body_expr) ,
4464
4462
span : body. span ,
@@ -4639,21 +4637,19 @@ impl<'a> LoweringContext<'a> {
4639
4637
let mut ids: SmallVec <[ hir:: Stmt ; 1 ] > = item_ids
4640
4638
. into_iter( )
4641
4639
. map( |item_id| {
4642
- let LoweredNodeId { node_id, hir_id } = self . next_id( ) ;
4640
+ let LoweredNodeId { node_id: _ , hir_id } = self . next_id( ) ;
4643
4641
4644
4642
hir:: Stmt {
4645
- id: node_id,
4646
4643
hir_id,
4647
4644
node: hir:: StmtKind :: Item ( item_id) ,
4648
4645
span: s. span,
4649
4646
}
4650
4647
} )
4651
4648
. collect( ) ;
4652
4649
ids. push( {
4653
- let LoweredNodeId { node_id, hir_id } = self . lower_node_id( s. id) ;
4650
+ let LoweredNodeId { node_id: _ , hir_id } = self . lower_node_id( s. id) ;
4654
4651
4655
4652
hir:: Stmt {
4656
- id: node_id,
4657
4653
hir_id,
4658
4654
node: hir:: StmtKind :: Local ( P ( l) ) ,
4659
4655
span: s. span,
@@ -4667,12 +4663,11 @@ impl<'a> LoweringContext<'a> {
4667
4663
return self . lower_item_id( it)
4668
4664
. into_iter( )
4669
4665
. map( |item_id| {
4670
- let LoweredNodeId { node_id, hir_id } = id. take( )
4666
+ let LoweredNodeId { node_id: _ , hir_id } = id. take( )
4671
4667
. map( |id| self . lower_node_id( id) )
4672
4668
. unwrap_or_else( || self . next_id( ) ) ;
4673
4669
4674
4670
hir:: Stmt {
4675
- id: node_id,
4676
4671
hir_id,
4677
4672
node: hir:: StmtKind :: Item ( item_id) ,
4678
4673
span: s. span,
@@ -4681,20 +4676,18 @@ impl<'a> LoweringContext<'a> {
4681
4676
. collect( ) ;
4682
4677
}
4683
4678
StmtKind :: Expr ( ref e) => {
4684
- let LoweredNodeId { node_id, hir_id } = self . lower_node_id( s. id) ;
4679
+ let LoweredNodeId { node_id: _ , hir_id } = self . lower_node_id( s. id) ;
4685
4680
4686
4681
hir:: Stmt {
4687
- id: node_id,
4688
4682
hir_id,
4689
4683
node: hir:: StmtKind :: Expr ( P ( self . lower_expr( e) ) ) ,
4690
4684
span: s. span,
4691
4685
}
4692
4686
} ,
4693
4687
StmtKind :: Semi ( ref e) => {
4694
- let LoweredNodeId { node_id, hir_id } = self . lower_node_id( s. id) ;
4688
+ let LoweredNodeId { node_id: _ , hir_id } = self . lower_node_id( s. id) ;
4695
4689
4696
4690
hir:: Stmt {
4697
- id: node_id,
4698
4691
hir_id,
4699
4692
node: hir:: StmtKind :: Semi ( P ( self . lower_expr( e) ) ) ,
4700
4693
span: s. span,
@@ -4925,9 +4918,8 @@ impl<'a> LoweringContext<'a> {
4925
4918
source,
4926
4919
} ;
4927
4920
4928
- let LoweredNodeId { node_id, hir_id } = self . next_id ( ) ;
4921
+ let LoweredNodeId { node_id : _ , hir_id } = self . next_id ( ) ;
4929
4922
hir:: Stmt {
4930
- id : node_id,
4931
4923
hir_id,
4932
4924
node : hir:: StmtKind :: Local ( P ( local) ) ,
4933
4925
span : sp
0 commit comments