@@ -772,28 +772,28 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
772772 |this| visit:: walk_enum_def ( this, enum_definition, generics, item_id) )
773773 }
774774
775- fn visit_impl_item ( & mut self , ii : & ' a ImplItem ) {
775+ fn visit_impl_item ( & mut self , ii : & ' a AssocItem ) {
776776 match & ii. kind {
777- ImplItemKind :: Const ( _, body) => {
777+ AssocItemKind :: Const ( _, body) => {
778778 self . check_impl_item_provided ( ii. span , body, "constant" , " = <expr>;" ) ;
779779 }
780- ImplItemKind :: Method ( sig, body) => {
780+ AssocItemKind :: Method ( sig, body) => {
781781 self . check_impl_item_provided ( ii. span , body, "function" , " { <body> }" ) ;
782782 self . check_fn_decl ( & sig. decl ) ;
783783 }
784- ImplItemKind :: TyAlias ( bounds, body) => {
784+ AssocItemKind :: TyAlias ( bounds, body) => {
785785 self . check_impl_item_provided ( ii. span , body, "type" , " = <type>;" ) ;
786786 self . check_impl_assoc_type_no_bounds ( bounds) ;
787787 }
788788 _ => { }
789789 }
790- visit:: walk_impl_item ( self , ii) ;
790+ visit:: walk_assoc_item ( self , ii) ;
791791 }
792792
793- fn visit_trait_item ( & mut self , ti : & ' a TraitItem ) {
793+ fn visit_trait_item ( & mut self , ti : & ' a AssocItem ) {
794794 self . invalid_visibility ( & ti. vis , None ) ;
795795 self . check_defaultness ( ti. span , ti. defaultness ) ;
796- visit:: walk_trait_item ( self , ti) ;
796+ visit:: walk_assoc_item ( self , ti) ;
797797 }
798798}
799799
0 commit comments