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