@@ -1860,7 +1860,7 @@ impl<'a> LoweringContext<'a> {
1860
1860
index : this. def_key ( def_id) . parent . expect ( "missing parent" ) ,
1861
1861
} ;
1862
1862
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 => {
1864
1864
Some ( parent_def_id ( self , def_id) )
1865
1865
}
1866
1866
Res :: Def ( DefKind :: Variant , def_id) if i + 1 == proj_start => {
@@ -1882,8 +1882,8 @@ impl<'a> LoweringContext<'a> {
1882
1882
if i + 1 == proj_start => ParenthesizedGenericArgs :: Ok ,
1883
1883
// `a::b::Trait(Args)::TraitItem`
1884
1884
Res :: Def ( DefKind :: Method , _)
1885
- | Res :: Def ( DefKind :: AssociatedConst , _)
1886
- | Res :: Def ( DefKind :: AssociatedTy , _)
1885
+ | Res :: Def ( DefKind :: AssocConst , _)
1886
+ | Res :: Def ( DefKind :: AssocTy , _)
1887
1887
if i + 2 == proj_start =>
1888
1888
{
1889
1889
ParenthesizedGenericArgs :: Ok
@@ -3589,13 +3589,13 @@ impl<'a> LoweringContext<'a> {
3589
3589
fn lower_trait_item_ref ( & mut self , i : & TraitItem ) -> hir:: TraitItemRef {
3590
3590
let ( kind, has_default) = match i. node {
3591
3591
TraitItemKind :: Const ( _, ref default) => {
3592
- ( hir:: AssociatedItemKind :: Const , default. is_some ( ) )
3592
+ ( hir:: AssocItemKind :: Const , default. is_some ( ) )
3593
3593
}
3594
3594
TraitItemKind :: Type ( _, ref default) => {
3595
- ( hir:: AssociatedItemKind :: Type , default. is_some ( ) )
3595
+ ( hir:: AssocItemKind :: Type , default. is_some ( ) )
3596
3596
}
3597
3597
TraitItemKind :: Method ( ref sig, ref default) => (
3598
- hir:: AssociatedItemKind :: Method {
3598
+ hir:: AssocItemKind :: Method {
3599
3599
has_self : sig. decl . has_self ( ) ,
3600
3600
} ,
3601
3601
default. is_some ( ) ,
@@ -3695,10 +3695,10 @@ impl<'a> LoweringContext<'a> {
3695
3695
vis : self . lower_visibility ( & i. vis , Some ( i. id ) ) ,
3696
3696
defaultness : self . lower_defaultness ( i. defaultness , true /* [1] */ ) ,
3697
3697
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 {
3702
3702
has_self : sig. decl . has_self ( ) ,
3703
3703
} ,
3704
3704
ImplItemKind :: Macro ( ..) => unimplemented ! ( ) ,
0 commit comments