@@ -1161,7 +1161,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
1161
1161
None ,
1162
1162
) ;
1163
1163
return GenericArg :: Const ( ConstArg {
1164
- hir_id : self . lower_node_id ( ty . id ) ,
1164
+ hir_id : self . next_id ( ) ,
1165
1165
kind : ConstArgKind :: Path ( qpath) ,
1166
1166
is_desugared_from_effects : false ,
1167
1167
} ) ;
@@ -1202,7 +1202,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
1202
1202
1203
1203
let lowered_anon = self . lower_anon_const ( anon) ;
1204
1204
ConstArg {
1205
- hir_id : lowered_anon . hir_id ,
1205
+ hir_id : self . next_id ( ) ,
1206
1206
kind : ConstArgKind :: Anon ( lowered_anon) ,
1207
1207
is_desugared_from_effects : false ,
1208
1208
}
@@ -2624,7 +2624,7 @@ impl<'hir> GenericArgsCtor<'hir> {
2624
2624
2625
2625
lcx. children . push ( ( def_id, hir:: MaybeOwner :: NonOwner ( hir_id) ) ) ;
2626
2626
(
2627
- hir_id ,
2627
+ lcx . next_id ( ) ,
2628
2628
hir:: ConstArgKind :: Anon ( lcx. arena . alloc ( hir:: AnonConst {
2629
2629
def_id,
2630
2630
hir_id,
@@ -2634,7 +2634,6 @@ impl<'hir> GenericArgsCtor<'hir> {
2634
2634
)
2635
2635
}
2636
2636
BoundConstness :: Maybe ( span) => {
2637
- let hir_id = lcx. next_id ( ) ;
2638
2637
let span = lcx. lower_span ( span) ;
2639
2638
2640
2639
let Some ( host_param_id) = lcx. host_param_id else {
@@ -2646,19 +2645,20 @@ impl<'hir> GenericArgsCtor<'hir> {
2646
2645
} ;
2647
2646
2648
2647
let res = Res :: Def ( DefKind :: ConstParam , host_param_id. to_def_id ( ) ) ;
2648
+ let path_seg_hir_id = lcx. next_id ( ) ;
2649
2649
let path = lcx. arena . alloc ( hir:: Path {
2650
2650
span,
2651
2651
res,
2652
2652
segments : arena_vec ! [
2653
2653
lcx;
2654
2654
hir:: PathSegment :: new(
2655
2655
Ident { name: sym:: host, span } ,
2656
- hir_id ,
2656
+ path_seg_hir_id ,
2657
2657
res
2658
2658
)
2659
2659
] ,
2660
2660
} ) ;
2661
- ( hir_id , hir:: ConstArgKind :: Path ( hir:: QPath :: Resolved ( None , path) ) )
2661
+ ( lcx . next_id ( ) , hir:: ConstArgKind :: Path ( hir:: QPath :: Resolved ( None , path) ) )
2662
2662
}
2663
2663
} ;
2664
2664
0 commit comments