@@ -1260,6 +1260,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
1260
1260
return self . lower_path_ty ( t, qself, path, ParamMode :: Explicit , itctx) ;
1261
1261
}
1262
1262
TyKind :: ImplicitSelf => {
1263
+ let hir_id = self . lower_node_id ( t. id ) ;
1263
1264
let res = self . expect_full_res ( t. id ) ;
1264
1265
let res = self . lower_res ( res) ;
1265
1266
hir:: TyKind :: Path ( hir:: QPath :: Resolved (
@@ -1268,6 +1269,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
1268
1269
res,
1269
1270
segments : arena_vec ! [ self ; hir:: PathSegment :: from_ident(
1270
1271
Ident :: with_dummy_span( kw:: SelfUpper ) ,
1272
+ hir_id,
1271
1273
res
1272
1274
) ] ,
1273
1275
span : self . lower_span ( t. span ) ,
@@ -2194,13 +2196,14 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
2194
2196
hir:: PredicateOrigin :: ImplTrait ,
2195
2197
) ;
2196
2198
2199
+ let hir_id = self . next_id ( ) ;
2197
2200
let res = Res :: Def ( DefKind :: TyParam , def_id. to_def_id ( ) ) ;
2198
2201
let ty = hir:: TyKind :: Path ( hir:: QPath :: Resolved (
2199
2202
None ,
2200
2203
self . arena . alloc ( hir:: Path {
2201
2204
span : self . lower_span ( span) ,
2202
2205
res,
2203
- segments : arena_vec ! [ self ; hir:: PathSegment :: from_ident( self . lower_ident( ident) , res) ] ,
2206
+ segments : arena_vec ! [ self ; hir:: PathSegment :: from_ident( self . lower_ident( ident) , hir_id , res) ] ,
2204
2207
} ) ,
2205
2208
) ) ;
2206
2209
0 commit comments