@@ -1860,7 +1860,7 @@ impl<'a> LoweringContext<'a> {
18601860 index : this. def_key ( def_id) . parent . expect ( "missing parent" ) ,
18611861 } ;
18621862 let type_def_id = match partial_res. base_res ( ) {
1863- Res :: Def ( DefKind :: AssociatedTy , def_id) if i + 2 == proj_start => {
1863+ Res :: Def ( DefKind :: AssocTy , def_id) if i + 2 == proj_start => {
18641864 Some ( parent_def_id ( self , def_id) )
18651865 }
18661866 Res :: Def ( DefKind :: Variant , def_id) if i + 1 == proj_start => {
@@ -1882,8 +1882,8 @@ impl<'a> LoweringContext<'a> {
18821882 if i + 1 == proj_start => ParenthesizedGenericArgs :: Ok ,
18831883 // `a::b::Trait(Args)::TraitItem`
18841884 Res :: Def ( DefKind :: Method , _)
1885- | Res :: Def ( DefKind :: AssociatedConst , _)
1886- | Res :: Def ( DefKind :: AssociatedTy , _)
1885+ | Res :: Def ( DefKind :: AssocConst , _)
1886+ | Res :: Def ( DefKind :: AssocTy , _)
18871887 if i + 2 == proj_start =>
18881888 {
18891889 ParenthesizedGenericArgs :: Ok
@@ -3589,13 +3589,13 @@ impl<'a> LoweringContext<'a> {
35893589 fn lower_trait_item_ref ( & mut self , i : & TraitItem ) -> hir:: TraitItemRef {
35903590 let ( kind, has_default) = match i. node {
35913591 TraitItemKind :: Const ( _, ref default) => {
3592- ( hir:: AssociatedItemKind :: Const , default. is_some ( ) )
3592+ ( hir:: AssocItemKind :: Const , default. is_some ( ) )
35933593 }
35943594 TraitItemKind :: Type ( _, ref default) => {
3595- ( hir:: AssociatedItemKind :: Type , default. is_some ( ) )
3595+ ( hir:: AssocItemKind :: Type , default. is_some ( ) )
35963596 }
35973597 TraitItemKind :: Method ( ref sig, ref default) => (
3598- hir:: AssociatedItemKind :: Method {
3598+ hir:: AssocItemKind :: Method {
35993599 has_self : sig. decl . has_self ( ) ,
36003600 } ,
36013601 default. is_some ( ) ,
@@ -3695,10 +3695,10 @@ impl<'a> LoweringContext<'a> {
36953695 vis : self . lower_visibility ( & i. vis , Some ( i. id ) ) ,
36963696 defaultness : self . lower_defaultness ( i. defaultness , true /* [1] */ ) ,
36973697 kind : match i. node {
3698- ImplItemKind :: Const ( ..) => hir:: AssociatedItemKind :: Const ,
3699- ImplItemKind :: Type ( ..) => hir:: AssociatedItemKind :: Type ,
3700- ImplItemKind :: Existential ( ..) => hir:: AssociatedItemKind :: Existential ,
3701- ImplItemKind :: Method ( ref sig, _) => hir:: AssociatedItemKind :: Method {
3698+ ImplItemKind :: Const ( ..) => hir:: AssocItemKind :: Const ,
3699+ ImplItemKind :: Type ( ..) => hir:: AssocItemKind :: Type ,
3700+ ImplItemKind :: Existential ( ..) => hir:: AssocItemKind :: Existential ,
3701+ ImplItemKind :: Method ( ref sig, _) => hir:: AssocItemKind :: Method {
37023702 has_self : sig. decl . has_self ( ) ,
37033703 } ,
37043704 ImplItemKind :: Macro ( ..) => unimplemented ! ( ) ,
0 commit comments