@@ -736,15 +736,16 @@ impl<'a> LoweringContext<'a> {
736
736
// Add a definition for the in-band lifetime def.
737
737
self . resolver . definitions ( ) . create_def_with_parent (
738
738
parent_id. index ,
739
- def_node_id ,
739
+ node_id ,
740
740
DefPathData :: LifetimeParam ( str_name) ,
741
741
DefIndexAddressSpace :: High ,
742
742
Mark :: root ( ) ,
743
743
span,
744
744
) ;
745
745
746
746
hir:: GenericParam {
747
- id : def_node_id,
747
+ id : node_id,
748
+ hir_id,
748
749
name : hir_name,
749
750
attrs : hir_vec ! [ ] ,
750
751
bounds : hir_vec ! [ ] ,
@@ -1233,7 +1234,7 @@ impl<'a> LoweringContext<'a> {
1233
1234
)
1234
1235
}
1235
1236
ImplTraitContext :: Universal ( in_band_ty_params) => {
1236
- self . lower_node_id ( def_node_id) ;
1237
+ let LoweredNodeId { hir_id , .. } = self . lower_node_id ( def_node_id) ;
1237
1238
// Add a definition for the in-band `Param`.
1238
1239
let def_index = self
1239
1240
. resolver
@@ -1249,6 +1250,7 @@ impl<'a> LoweringContext<'a> {
1249
1250
let ident = Ident :: from_str ( & pprust:: ty_to_string ( t) ) . with_span_pos ( span) ;
1250
1251
in_band_ty_params. push ( hir:: GenericParam {
1251
1252
id : def_node_id,
1253
+ hir_id,
1252
1254
name : ParamName :: Plain ( ident) ,
1253
1255
pure_wrt_drop : false ,
1254
1256
attrs : hir_vec ! [ ] ,
@@ -1514,6 +1516,7 @@ impl<'a> LoweringContext<'a> {
1514
1516
1515
1517
self . output_lifetime_params . push ( hir:: GenericParam {
1516
1518
id : def_node_id,
1519
+ hir_id,
1517
1520
name,
1518
1521
span : lifetime. span ,
1519
1522
pure_wrt_drop : false ,
@@ -2404,6 +2407,7 @@ impl<'a> LoweringContext<'a> {
2404
2407
} ;
2405
2408
let param = hir:: GenericParam {
2406
2409
id : lt. id ,
2410
+ hir_id : lt. hir_id ,
2407
2411
name : param_name,
2408
2412
span : lt. span ,
2409
2413
pure_wrt_drop : attr:: contains_name ( & param. attrs , "may_dangle" ) ,
@@ -2436,8 +2440,11 @@ impl<'a> LoweringContext<'a> {
2436
2440
. collect ( ) ;
2437
2441
}
2438
2442
2443
+ let LoweredNodeId { node_id, hir_id } = self . lower_node_id ( param. id ) ;
2444
+
2439
2445
hir:: GenericParam {
2440
- id : self . lower_node_id ( param. id ) . node_id ,
2446
+ id : node_id,
2447
+ hir_id,
2441
2448
name : hir:: ParamName :: Plain ( ident) ,
2442
2449
pure_wrt_drop : attr:: contains_name ( & param. attrs , "may_dangle" ) ,
2443
2450
attrs : self . lower_attrs ( & param. attrs ) ,
0 commit comments