@@ -2498,7 +2498,7 @@ impl<'a: 'ast, 'b, 'ast> LateResolutionVisitor<'a, 'b, 'ast> {
2498
2498
AssocItemKind :: Fn ( box Fn { generics, .. } ) => {
2499
2499
walk_assoc_item ( self , generics, LifetimeBinderKind :: Function , item) ;
2500
2500
}
2501
- AssocItemKind :: TyAlias ( box TyAlias { generics, .. } ) => self
2501
+ AssocItemKind :: Type ( box TyAlias { generics, .. } ) => self
2502
2502
. with_lifetime_rib ( LifetimeRibKind :: AnonymousReportError , |this| {
2503
2503
walk_assoc_item ( this, generics, LifetimeBinderKind :: Item , item)
2504
2504
} ) ,
@@ -2694,8 +2694,8 @@ impl<'a: 'ast, 'b, 'ast> LateResolutionVisitor<'a, 'b, 'ast> {
2694
2694
} ,
2695
2695
) ;
2696
2696
}
2697
- AssocItemKind :: TyAlias ( box TyAlias { generics, .. } ) => {
2698
- debug ! ( "resolve_implementation AssocItemKind::TyAlias " ) ;
2697
+ AssocItemKind :: Type ( box TyAlias { generics, .. } ) => {
2698
+ debug ! ( "resolve_implementation AssocItemKind::Type " ) ;
2699
2699
// We also need a new scope for the impl item type parameters.
2700
2700
self . with_generic_param_rib (
2701
2701
& generics. params ,
@@ -2770,7 +2770,7 @@ impl<'a: 'ast, 'b, 'ast> LateResolutionVisitor<'a, 'b, 'ast> {
2770
2770
let res = binding. res ( ) ;
2771
2771
let Res :: Def ( def_kind, _) = res else { bug ! ( ) } ;
2772
2772
match ( def_kind, kind) {
2773
- ( DefKind :: AssocTy , AssocItemKind :: TyAlias ( ..) )
2773
+ ( DefKind :: AssocTy , AssocItemKind :: Type ( ..) )
2774
2774
| ( DefKind :: AssocFn , AssocItemKind :: Fn ( ..) )
2775
2775
| ( DefKind :: AssocConst , AssocItemKind :: Const ( ..) ) => {
2776
2776
self . r . record_partial_res ( id, PartialRes :: new ( res) ) ;
@@ -2784,7 +2784,7 @@ impl<'a: 'ast, 'b, 'ast> LateResolutionVisitor<'a, 'b, 'ast> {
2784
2784
let ( code, kind) = match kind {
2785
2785
AssocItemKind :: Const ( ..) => ( rustc_errors:: error_code!( E0323 ) , "const" ) ,
2786
2786
AssocItemKind :: Fn ( ..) => ( rustc_errors:: error_code!( E0324 ) , "method" ) ,
2787
- AssocItemKind :: TyAlias ( ..) => ( rustc_errors:: error_code!( E0325 ) , "type" ) ,
2787
+ AssocItemKind :: Type ( ..) => ( rustc_errors:: error_code!( E0325 ) , "type" ) ,
2788
2788
AssocItemKind :: MacCall ( ..) => span_bug ! ( span, "unexpanded macro" ) ,
2789
2789
} ;
2790
2790
let trait_path = path_names_to_string ( path) ;
0 commit comments