@@ -1260,6 +1260,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
12601260 return self . lower_path_ty ( t, qself, path, ParamMode :: Explicit , itctx) ;
12611261 }
12621262 TyKind :: ImplicitSelf => {
1263+ let hir_id = self . lower_node_id ( t. id ) ;
12631264 let res = self . expect_full_res ( t. id ) ;
12641265 let res = self . lower_res ( res) ;
12651266 hir:: TyKind :: Path ( hir:: QPath :: Resolved (
@@ -1268,6 +1269,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
12681269 res,
12691270 segments : arena_vec ! [ self ; hir:: PathSegment :: from_ident(
12701271 Ident :: with_dummy_span( kw:: SelfUpper ) ,
1272+ hir_id,
12711273 res
12721274 ) ] ,
12731275 span : self . lower_span ( t. span ) ,
@@ -2194,13 +2196,14 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
21942196 hir:: PredicateOrigin :: ImplTrait ,
21952197 ) ;
21962198
2199+ let hir_id = self . next_id ( ) ;
21972200 let res = Res :: Def ( DefKind :: TyParam , def_id. to_def_id ( ) ) ;
21982201 let ty = hir:: TyKind :: Path ( hir:: QPath :: Resolved (
21992202 None ,
22002203 self . arena . alloc ( hir:: Path {
22012204 span : self . lower_span ( span) ,
22022205 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) ] ,
22042207 } ) ,
22052208 ) ) ;
22062209
0 commit comments