@@ -1257,6 +1257,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
12571257 return self . lower_path_ty ( t, qself, path, ParamMode :: Explicit , itctx) ;
12581258 }
12591259 TyKind :: ImplicitSelf => {
1260+ let hir_id = self . lower_node_id ( t. id ) ;
12601261 let res = self . expect_full_res ( t. id ) ;
12611262 let res = self . lower_res ( res) ;
12621263 hir:: TyKind :: Path ( hir:: QPath :: Resolved (
@@ -1265,6 +1266,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
12651266 res,
12661267 segments : arena_vec ! [ self ; hir:: PathSegment :: from_ident(
12671268 Ident :: with_dummy_span( kw:: SelfUpper ) ,
1269+ hir_id,
12681270 res
12691271 ) ] ,
12701272 span : self . lower_span ( t. span ) ,
@@ -2191,13 +2193,14 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
21912193 hir:: PredicateOrigin :: ImplTrait ,
21922194 ) ;
21932195
2196+ let hir_id = self . next_id ( ) ;
21942197 let res = Res :: Def ( DefKind :: TyParam , def_id. to_def_id ( ) ) ;
21952198 let ty = hir:: TyKind :: Path ( hir:: QPath :: Resolved (
21962199 None ,
21972200 self . arena . alloc ( hir:: Path {
21982201 span : self . lower_span ( span) ,
21992202 res,
2200- segments : arena_vec ! [ self ; hir:: PathSegment :: from_ident( self . lower_ident( ident) , res) ] ,
2203+ segments : arena_vec ! [ self ; hir:: PathSegment :: from_ident( self . lower_ident( ident) , hir_id , res) ] ,
22012204 } ) ,
22022205 ) ) ;
22032206
0 commit comments