@@ -1382,12 +1382,12 @@ impl<'a> LoweringContext<'a> {
13821382 if existential_desugaring {
13831383 // Desugar `AssocTy: Bounds` into `AssocTy = impl Bounds`.
13841384
1385- let impl_ty_node_id = self . sess . next_node_id ( ) ;
1385+ let impl_trait_node_id = self . sess . next_node_id ( ) ;
13861386 let parent_def_index = self . current_hir_id_owner . last ( ) . unwrap ( ) . 0 ;
13871387 self . resolver . definitions ( ) . create_def_with_parent (
13881388 parent_def_index,
1389- impl_ty_node_id ,
1390- DefPathData :: Misc ,
1389+ impl_trait_node_id ,
1390+ DefPathData :: ImplTrait ,
13911391 DefIndexAddressSpace :: High ,
13921392 Mark :: root ( ) ,
13931393 DUMMY_SP
@@ -1397,7 +1397,7 @@ impl<'a> LoweringContext<'a> {
13971397 this. lower_ty (
13981398 & Ty {
13991399 id : this. sess . next_node_id ( ) ,
1400- node : TyKind :: ImplTrait ( impl_ty_node_id , bounds. clone ( ) ) ,
1400+ node : TyKind :: ImplTrait ( impl_trait_node_id , bounds. clone ( ) ) ,
14011401 span : DUMMY_SP ,
14021402 } ,
14031403 itctx,
@@ -1410,9 +1410,8 @@ impl<'a> LoweringContext<'a> {
14101410 let bounds = self . lower_param_bounds ( bounds, itctx) ;
14111411
14121412 let id = self . sess . next_node_id ( ) ;
1413- let LoweredNodeId { node_id : _, hir_id } = self . lower_node_id ( id) ;
14141413 P ( hir:: Ty {
1415- hir_id,
1414+ hir_id : self . lower_node_id ( id ) ,
14161415 node : hir:: TyKind :: AssocTyExistential ( bounds) ,
14171416 span : DUMMY_SP ,
14181417 } )
@@ -1423,7 +1422,7 @@ impl<'a> LoweringContext<'a> {
14231422 hir:: TypeBinding {
14241423 hir_id : self . lower_node_id ( c. id ) ,
14251424 ident : c. ident ,
1426- ty
1425+ ty,
14271426 span : c. span ,
14281427 }
14291428 }
@@ -1647,7 +1646,7 @@ impl<'a> LoweringContext<'a> {
16471646 // Not tracking it makes lints in rustc and clippy very fragile, as
16481647 // frequently opened issues show.
16491648 let exist_ty_span = self . mark_span_with_reason (
1650- CompilerDesugaringKind :: ExistentialReturnType ,
1649+ CompilerDesugaringKind :: ExistentialType ,
16511650 span,
16521651 None ,
16531652 ) ;
0 commit comments