@@ -1862,7 +1862,7 @@ impl<'a> LoweringContext<'a> {
18621862 index : this. def_key ( def_id) . parent . expect ( "missing parent" ) ,
18631863 } ;
18641864 let type_def_id = match partial_res. base_res ( ) {
1865- Res :: Def ( DefKind :: AssociatedTy , def_id) if i + 2 == proj_start => {
1865+ Res :: Def ( DefKind :: AssocTy , def_id) if i + 2 == proj_start => {
18661866 Some ( parent_def_id ( self , def_id) )
18671867 }
18681868 Res :: Def ( DefKind :: Variant , def_id) if i + 1 == proj_start => {
@@ -1884,8 +1884,8 @@ impl<'a> LoweringContext<'a> {
18841884 if i + 1 == proj_start => ParenthesizedGenericArgs :: Ok ,
18851885 // `a::b::Trait(Args)::TraitItem`
18861886 Res :: Def ( DefKind :: Method , _)
1887- | Res :: Def ( DefKind :: AssociatedConst , _)
1888- | Res :: Def ( DefKind :: AssociatedTy , _)
1887+ | Res :: Def ( DefKind :: AssocConst , _)
1888+ | Res :: Def ( DefKind :: AssocTy , _)
18891889 if i + 2 == proj_start =>
18901890 {
18911891 ParenthesizedGenericArgs :: Ok
@@ -3591,13 +3591,13 @@ impl<'a> LoweringContext<'a> {
35913591 fn lower_trait_item_ref ( & mut self , i : & TraitItem ) -> hir:: TraitItemRef {
35923592 let ( kind, has_default) = match i. node {
35933593 TraitItemKind :: Const ( _, ref default) => {
3594- ( hir:: AssociatedItemKind :: Const , default. is_some ( ) )
3594+ ( hir:: AssocItemKind :: Const , default. is_some ( ) )
35953595 }
35963596 TraitItemKind :: Type ( _, ref default) => {
3597- ( hir:: AssociatedItemKind :: Type , default. is_some ( ) )
3597+ ( hir:: AssocItemKind :: Type , default. is_some ( ) )
35983598 }
35993599 TraitItemKind :: Method ( ref sig, ref default) => (
3600- hir:: AssociatedItemKind :: Method {
3600+ hir:: AssocItemKind :: Method {
36013601 has_self : sig. decl . has_self ( ) ,
36023602 } ,
36033603 default. is_some ( ) ,
@@ -3697,10 +3697,10 @@ impl<'a> LoweringContext<'a> {
36973697 vis : self . lower_visibility ( & i. vis , Some ( i. id ) ) ,
36983698 defaultness : self . lower_defaultness ( i. defaultness , true /* [1] */ ) ,
36993699 kind : match i. node {
3700- ImplItemKind :: Const ( ..) => hir:: AssociatedItemKind :: Const ,
3701- ImplItemKind :: Type ( ..) => hir:: AssociatedItemKind :: Type ,
3702- ImplItemKind :: Existential ( ..) => hir:: AssociatedItemKind :: Existential ,
3703- ImplItemKind :: Method ( ref sig, _) => hir:: AssociatedItemKind :: Method {
3700+ ImplItemKind :: Const ( ..) => hir:: AssocItemKind :: Const ,
3701+ ImplItemKind :: Type ( ..) => hir:: AssocItemKind :: Type ,
3702+ ImplItemKind :: Existential ( ..) => hir:: AssocItemKind :: Existential ,
3703+ ImplItemKind :: Method ( ref sig, _) => hir:: AssocItemKind :: Method {
37043704 has_self : sig. decl . has_self ( ) ,
37053705 } ,
37063706 ImplItemKind :: Macro ( ..) => unimplemented ! ( ) ,
0 commit comments