@@ -1151,10 +1151,9 @@ impl<'a> LoweringContext<'a> {
1151
1151
1152
1152
fn lower_ty_binding ( & mut self , b : & TypeBinding ,
1153
1153
itctx : ImplTraitContext < ' _ > ) -> hir:: TypeBinding {
1154
- let LoweredNodeId { node_id, hir_id } = self . lower_node_id ( b. id ) ;
1154
+ let LoweredNodeId { node_id : _ , hir_id } = self . lower_node_id ( b. id ) ;
1155
1155
1156
1156
hir:: TypeBinding {
1157
- id : node_id,
1158
1157
hir_id,
1159
1158
ident : b. ident ,
1160
1159
ty : self . lower_ty ( & b. ty , itctx) ,
@@ -1982,14 +1981,13 @@ impl<'a> LoweringContext<'a> {
1982
1981
let LoweredNodeId { node_id : _, hir_id } = this. next_id ( ) ;
1983
1982
hir:: Ty { node : hir:: TyKind :: Tup ( tys) , hir_id, span }
1984
1983
} ;
1985
- let LoweredNodeId { node_id, hir_id } = this. next_id ( ) ;
1984
+ let LoweredNodeId { node_id : _ , hir_id } = this. next_id ( ) ;
1986
1985
1987
1986
(
1988
1987
hir:: GenericArgs {
1989
1988
args : hir_vec ! [ GenericArg :: Type ( mk_tup( this, inputs, span) ) ] ,
1990
1989
bindings : hir_vec ! [
1991
1990
hir:: TypeBinding {
1992
- id: node_id,
1993
1991
hir_id,
1994
1992
ident: Ident :: from_str( FN_OUTPUT_NAME ) ,
1995
1993
ty: output
@@ -2008,7 +2006,7 @@ impl<'a> LoweringContext<'a> {
2008
2006
}
2009
2007
2010
2008
fn lower_local ( & mut self , l : & Local ) -> ( hir:: Local , SmallVec < [ hir:: ItemId ; 1 ] > ) {
2011
- let LoweredNodeId { node_id, hir_id } = self . lower_node_id ( l. id ) ;
2009
+ let LoweredNodeId { node_id : _ , hir_id } = self . lower_node_id ( l. id ) ;
2012
2010
let mut ids = SmallVec :: < [ hir:: ItemId ; 1 ] > :: new ( ) ;
2013
2011
if self . sess . features_untracked ( ) . impl_trait_in_bindings {
2014
2012
if let Some ( ref ty) = l. ty {
@@ -2018,7 +2016,6 @@ impl<'a> LoweringContext<'a> {
2018
2016
}
2019
2017
let parent_def_id = DefId :: local ( self . current_hir_id_owner . last ( ) . unwrap ( ) . 0 ) ;
2020
2018
( hir:: Local {
2021
- id : node_id,
2022
2019
hir_id,
2023
2020
ty : l. ty
2024
2021
. as_ref ( )
@@ -2045,9 +2042,8 @@ impl<'a> LoweringContext<'a> {
2045
2042
}
2046
2043
2047
2044
fn lower_arg ( & mut self , arg : & Arg ) -> hir:: Arg {
2048
- let LoweredNodeId { node_id, hir_id } = self . lower_node_id ( arg. id ) ;
2045
+ let LoweredNodeId { node_id : _ , hir_id } = self . lower_node_id ( arg. id ) ;
2049
2046
hir:: Arg {
2050
- id : node_id,
2051
2047
hir_id,
2052
2048
pat : self . lower_pat ( & arg. pat ) ,
2053
2049
}
@@ -2327,13 +2323,12 @@ impl<'a> LoweringContext<'a> {
2327
2323
} ;
2328
2324
2329
2325
// "<Output = T>"
2330
- let LoweredNodeId { node_id, hir_id } = this. next_id ( ) ;
2326
+ let LoweredNodeId { node_id : _ , hir_id } = this. next_id ( ) ;
2331
2327
let future_params = P ( hir:: GenericArgs {
2332
2328
args : hir_vec ! [ ] ,
2333
2329
bindings : hir_vec ! [ hir:: TypeBinding {
2334
2330
ident: Ident :: from_str( FN_OUTPUT_NAME ) ,
2335
2331
ty: output_ty,
2336
- id: node_id,
2337
2332
hir_id,
2338
2333
span,
2339
2334
} ] ,
@@ -2343,13 +2338,12 @@ impl<'a> LoweringContext<'a> {
2343
2338
let future_path =
2344
2339
this. std_path ( span, & [ "future" , "Future" ] , Some ( future_params) , false ) ;
2345
2340
2346
- let LoweredNodeId { node_id, hir_id } = this. next_id ( ) ;
2341
+ let LoweredNodeId { node_id : _ , hir_id } = this. next_id ( ) ;
2347
2342
let mut bounds = vec ! [
2348
2343
hir:: GenericBound :: Trait (
2349
2344
hir:: PolyTraitRef {
2350
2345
trait_ref: hir:: TraitRef {
2351
2346
path: future_path,
2352
- ref_id: node_id,
2353
2347
hir_ref_id: hir_id,
2354
2348
} ,
2355
2349
bound_generic_params: hir_vec![ ] ,
@@ -2719,10 +2713,9 @@ impl<'a> LoweringContext<'a> {
2719
2713
hir:: QPath :: Resolved ( None , path) => path. and_then ( |path| path) ,
2720
2714
qpath => bug ! ( "lower_trait_ref: unexpected QPath `{:?}`" , qpath) ,
2721
2715
} ;
2722
- let LoweredNodeId { node_id, hir_id } = self . lower_node_id ( p. ref_id ) ;
2716
+ let LoweredNodeId { node_id : _ , hir_id } = self . lower_node_id ( p. ref_id ) ;
2723
2717
hir:: TraitRef {
2724
2718
path,
2725
- ref_id : node_id,
2726
2719
hir_ref_id : hir_id,
2727
2720
}
2728
2721
}
@@ -2768,10 +2761,9 @@ impl<'a> LoweringContext<'a> {
2768
2761
}
2769
2762
2770
2763
fn lower_field ( & mut self , f : & Field ) -> hir:: Field {
2771
- let LoweredNodeId { node_id, hir_id } = self . next_id ( ) ;
2764
+ let LoweredNodeId { node_id : _ , hir_id } = self . next_id ( ) ;
2772
2765
2773
2766
hir:: Field {
2774
- id : node_id,
2775
2767
hir_id,
2776
2768
ident : f. ident ,
2777
2769
expr : P ( self . lower_expr ( & f. expr ) ) ,
@@ -3123,12 +3115,11 @@ impl<'a> LoweringContext<'a> {
3123
3115
hir:: VisibilityKind :: Public => hir:: VisibilityKind :: Public ,
3124
3116
hir:: VisibilityKind :: Crate ( sugar) => hir:: VisibilityKind :: Crate ( sugar) ,
3125
3117
hir:: VisibilityKind :: Inherited => hir:: VisibilityKind :: Inherited ,
3126
- hir:: VisibilityKind :: Restricted { ref path, id : _ , hir_id : _ } => {
3118
+ hir:: VisibilityKind :: Restricted { ref path, hir_id : _ } => {
3127
3119
let id = this. next_id ( ) ;
3128
3120
let path = this. renumber_segment_ids ( path) ;
3129
3121
hir:: VisibilityKind :: Restricted {
3130
3122
path,
3131
- id : id. node_id ,
3132
3123
hir_id : id. hir_id ,
3133
3124
}
3134
3125
}
@@ -3230,12 +3221,11 @@ impl<'a> LoweringContext<'a> {
3230
3221
hir:: VisibilityKind :: Public => hir:: VisibilityKind :: Public ,
3231
3222
hir:: VisibilityKind :: Crate ( sugar) => hir:: VisibilityKind :: Crate ( sugar) ,
3232
3223
hir:: VisibilityKind :: Inherited => hir:: VisibilityKind :: Inherited ,
3233
- hir:: VisibilityKind :: Restricted { ref path, id : _ , hir_id : _ } => {
3224
+ hir:: VisibilityKind :: Restricted { ref path, hir_id : _ } => {
3234
3225
let id = this. next_id ( ) ;
3235
3226
let path = this. renumber_segment_ids ( path) ;
3236
3227
hir:: VisibilityKind :: Restricted {
3237
3228
path : path,
3238
- id : id. node_id ,
3239
3229
hir_id : id. hir_id ,
3240
3230
}
3241
3231
}
@@ -3353,7 +3343,6 @@ impl<'a> LoweringContext<'a> {
3353
3343
} ;
3354
3344
3355
3345
hir:: TraitItem {
3356
- id : node_id,
3357
3346
hir_id,
3358
3347
ident : i. ident ,
3359
3348
attrs : self . lower_attrs ( & i. attrs ) ,
@@ -3429,7 +3418,6 @@ impl<'a> LoweringContext<'a> {
3429
3418
} ;
3430
3419
3431
3420
hir:: ImplItem {
3432
- id : node_id,
3433
3421
hir_id,
3434
3422
ident : i. ident ,
3435
3423
attrs : self . lower_attrs ( & i. attrs ) ,
@@ -3813,9 +3801,8 @@ impl<'a> LoweringContext<'a> {
3813
3801
3814
3802
fn lower_anon_const ( & mut self , c : & AnonConst ) -> hir:: AnonConst {
3815
3803
self . with_new_scopes ( |this| {
3816
- let LoweredNodeId { node_id, hir_id } = this. lower_node_id ( c. id ) ;
3804
+ let LoweredNodeId { node_id : _ , hir_id } = this. lower_node_id ( c. id ) ;
3817
3805
hir:: AnonConst {
3818
- id : node_id,
3819
3806
hir_id,
3820
3807
body : this. lower_body ( None , |this| this. lower_expr ( & c. value ) ) ,
3821
3808
}
@@ -4427,9 +4414,8 @@ impl<'a> LoweringContext<'a> {
4427
4414
ThinVec :: new ( ) ,
4428
4415
) )
4429
4416
} ;
4430
- let LoweredNodeId { node_id, hir_id } = self . next_id ( ) ;
4417
+ let LoweredNodeId { node_id : _ , hir_id } = self . next_id ( ) ;
4431
4418
let match_stmt = hir:: Stmt {
4432
- id : node_id,
4433
4419
hir_id,
4434
4420
node : hir:: StmtKind :: Expr ( match_expr) ,
4435
4421
span : head_sp,
@@ -4456,9 +4442,8 @@ impl<'a> LoweringContext<'a> {
4456
4442
4457
4443
let body_block = self . with_loop_scope ( e. id , |this| this. lower_block ( body, false ) ) ;
4458
4444
let body_expr = P ( self . expr_block ( body_block, ThinVec :: new ( ) ) ) ;
4459
- let LoweredNodeId { node_id, hir_id } = self . next_id ( ) ;
4445
+ let LoweredNodeId { node_id : _ , hir_id } = self . next_id ( ) ;
4460
4446
let body_stmt = hir:: Stmt {
4461
- id : node_id,
4462
4447
hir_id,
4463
4448
node : hir:: StmtKind :: Expr ( body_expr) ,
4464
4449
span : body. span ,
@@ -4639,21 +4624,19 @@ impl<'a> LoweringContext<'a> {
4639
4624
let mut ids: SmallVec <[ hir:: Stmt ; 1 ] > = item_ids
4640
4625
. into_iter( )
4641
4626
. map( |item_id| {
4642
- let LoweredNodeId { node_id, hir_id } = self . next_id( ) ;
4627
+ let LoweredNodeId { node_id: _ , hir_id } = self . next_id( ) ;
4643
4628
4644
4629
hir:: Stmt {
4645
- id: node_id,
4646
4630
hir_id,
4647
4631
node: hir:: StmtKind :: Item ( item_id) ,
4648
4632
span: s. span,
4649
4633
}
4650
4634
} )
4651
4635
. collect( ) ;
4652
4636
ids. push( {
4653
- let LoweredNodeId { node_id, hir_id } = self . lower_node_id( s. id) ;
4637
+ let LoweredNodeId { node_id: _ , hir_id } = self . lower_node_id( s. id) ;
4654
4638
4655
4639
hir:: Stmt {
4656
- id: node_id,
4657
4640
hir_id,
4658
4641
node: hir:: StmtKind :: Local ( P ( l) ) ,
4659
4642
span: s. span,
@@ -4667,12 +4650,11 @@ impl<'a> LoweringContext<'a> {
4667
4650
return self . lower_item_id( it)
4668
4651
. into_iter( )
4669
4652
. map( |item_id| {
4670
- let LoweredNodeId { node_id, hir_id } = id. take( )
4653
+ let LoweredNodeId { node_id: _ , hir_id } = id. take( )
4671
4654
. map( |id| self . lower_node_id( id) )
4672
4655
. unwrap_or_else( || self . next_id( ) ) ;
4673
4656
4674
4657
hir:: Stmt {
4675
- id: node_id,
4676
4658
hir_id,
4677
4659
node: hir:: StmtKind :: Item ( item_id) ,
4678
4660
span: s. span,
@@ -4681,20 +4663,18 @@ impl<'a> LoweringContext<'a> {
4681
4663
. collect( ) ;
4682
4664
}
4683
4665
StmtKind :: Expr ( ref e) => {
4684
- let LoweredNodeId { node_id, hir_id } = self . lower_node_id( s. id) ;
4666
+ let LoweredNodeId { node_id: _ , hir_id } = self . lower_node_id( s. id) ;
4685
4667
4686
4668
hir:: Stmt {
4687
- id: node_id,
4688
4669
hir_id,
4689
4670
node: hir:: StmtKind :: Expr ( P ( self . lower_expr( e) ) ) ,
4690
4671
span: s. span,
4691
4672
}
4692
4673
} ,
4693
4674
StmtKind :: Semi ( ref e) => {
4694
- let LoweredNodeId { node_id, hir_id } = self . lower_node_id( s. id) ;
4675
+ let LoweredNodeId { node_id: _ , hir_id } = self . lower_node_id( s. id) ;
4695
4676
4696
4677
hir:: Stmt {
4697
- id: node_id,
4698
4678
hir_id,
4699
4679
node: hir:: StmtKind :: Semi ( P ( self . lower_expr( e) ) ) ,
4700
4680
span: s. span,
@@ -4739,7 +4719,6 @@ impl<'a> LoweringContext<'a> {
4739
4719
ParamMode :: Explicit ,
4740
4720
explicit_owner,
4741
4721
) ) ,
4742
- id : lowered_id. node_id ,
4743
4722
hir_id : lowered_id. hir_id ,
4744
4723
}
4745
4724
} ,
@@ -4809,10 +4788,9 @@ impl<'a> LoweringContext<'a> {
4809
4788
}
4810
4789
4811
4790
fn field ( & mut self , ident : Ident , expr : P < hir:: Expr > , span : Span ) -> hir:: Field {
4812
- let LoweredNodeId { node_id, hir_id } = self . next_id ( ) ;
4791
+ let LoweredNodeId { node_id : _ , hir_id } = self . next_id ( ) ;
4813
4792
4814
4793
hir:: Field {
4815
- id : node_id,
4816
4794
hir_id,
4817
4795
ident,
4818
4796
span,
@@ -4912,22 +4890,20 @@ impl<'a> LoweringContext<'a> {
4912
4890
pat : P < hir:: Pat > ,
4913
4891
source : hir:: LocalSource ,
4914
4892
) -> hir:: Stmt {
4915
- let LoweredNodeId { node_id, hir_id } = self . next_id ( ) ;
4893
+ let LoweredNodeId { node_id : _ , hir_id } = self . next_id ( ) ;
4916
4894
4917
4895
let local = hir:: Local {
4918
4896
pat,
4919
4897
ty : None ,
4920
4898
init : ex,
4921
- id : node_id,
4922
4899
hir_id,
4923
4900
span : sp,
4924
4901
attrs : ThinVec :: new ( ) ,
4925
4902
source,
4926
4903
} ;
4927
4904
4928
- let LoweredNodeId { node_id, hir_id } = self . next_id ( ) ;
4905
+ let LoweredNodeId { node_id : _ , hir_id } = self . next_id ( ) ;
4929
4906
hir:: Stmt {
4930
- id : node_id,
4931
4907
hir_id,
4932
4908
node : hir:: StmtKind :: Local ( P ( local) ) ,
4933
4909
span : sp
@@ -5075,7 +5051,6 @@ impl<'a> LoweringContext<'a> {
5075
5051
bound_generic_params : hir:: HirVec :: new ( ) ,
5076
5052
trait_ref : hir:: TraitRef {
5077
5053
path : path. and_then ( |path| path) ,
5078
- ref_id : id. node_id ,
5079
5054
hir_ref_id : id. hir_id ,
5080
5055
} ,
5081
5056
span,
0 commit comments