@@ -77,7 +77,7 @@ impl SourceToDefCtx<'_, '_> {
7777 pub ( super ) fn struct_to_def ( & mut self , src : InFile < ast:: Struct > ) -> Option < StructId > {
7878 self . to_def ( src, keys:: STRUCT )
7979 }
80- pub ( super ) fn enum_to_def ( & mut self , src : InFile < ast:: EnumDef > ) -> Option < EnumId > {
80+ pub ( super ) fn enum_to_def ( & mut self , src : InFile < ast:: Enum > ) -> Option < EnumId > {
8181 self . to_def ( src, keys:: ENUM )
8282 }
8383 pub ( super ) fn union_to_def ( & mut self , src : InFile < ast:: Union > ) -> Option < UnionId > {
@@ -170,7 +170,7 @@ impl SourceToDefCtx<'_, '_> {
170170 let def = self . struct_to_def( container. with_value( it) ) ?;
171171 VariantId :: from( def) . into( )
172172 } ,
173- ast:: EnumDef ( it) => {
173+ ast:: Enum ( it) => {
174174 let def = self . enum_to_def( container. with_value( it) ) ?;
175175 def. into( )
176176 } ,
@@ -206,7 +206,7 @@ impl SourceToDefCtx<'_, '_> {
206206 match ( container. value) {
207207 ast:: Fn ( it) => self . fn_to_def( container. with_value( it) ) ?. into( ) ,
208208 ast:: Struct ( it) => self . struct_to_def( container. with_value( it) ) ?. into( ) ,
209- ast:: EnumDef ( it) => self . enum_to_def( container. with_value( it) ) ?. into( ) ,
209+ ast:: Enum ( it) => self . enum_to_def( container. with_value( it) ) ?. into( ) ,
210210 ast:: TraitDef ( it) => self . trait_to_def( container. with_value( it) ) ?. into( ) ,
211211 ast:: TypeAlias ( it) => self . type_alias_to_def( container. with_value( it) ) ?. into( ) ,
212212 ast:: ImplDef ( it) => self . impl_to_def( container. with_value( it) ) ?. into( ) ,
0 commit comments