@@ -83,10 +83,10 @@ impl SourceToDefCtx<'_, '_> {
8383 pub ( super ) fn union_to_def ( & mut self , src : InFile < ast:: Union > ) -> Option < UnionId > {
8484 self . to_def ( src, keys:: UNION )
8585 }
86- pub ( super ) fn static_to_def ( & mut self , src : InFile < ast:: StaticDef > ) -> Option < StaticId > {
86+ pub ( super ) fn static_to_def ( & mut self , src : InFile < ast:: Static > ) -> Option < StaticId > {
8787 self . to_def ( src, keys:: STATIC )
8888 }
89- pub ( super ) fn const_to_def ( & mut self , src : InFile < ast:: ConstDef > ) -> Option < ConstId > {
89+ pub ( super ) fn const_to_def ( & mut self , src : InFile < ast:: Const > ) -> Option < ConstId > {
9090 self . to_def ( src, keys:: CONST )
9191 }
9292 pub ( super ) fn type_alias_to_def ( & mut self , src : InFile < ast:: TypeAlias > ) -> Option < TypeAliasId > {
@@ -100,9 +100,9 @@ impl SourceToDefCtx<'_, '_> {
100100 }
101101 pub ( super ) fn enum_variant_to_def (
102102 & mut self ,
103- src : InFile < ast:: EnumVariant > ,
103+ src : InFile < ast:: Variant > ,
104104 ) -> Option < EnumVariantId > {
105- self . to_def ( src, keys:: ENUM_VARIANT )
105+ self . to_def ( src, keys:: VARIANT )
106106 }
107107 pub ( super ) fn bind_pat_to_def (
108108 & mut self ,
@@ -178,11 +178,11 @@ impl SourceToDefCtx<'_, '_> {
178178 let def = self . union_to_def( container. with_value( it) ) ?;
179179 VariantId :: from( def) . into( )
180180 } ,
181- ast:: StaticDef ( it) => {
181+ ast:: Static ( it) => {
182182 let def = self . static_to_def( container. with_value( it) ) ?;
183183 DefWithBodyId :: from( def) . into( )
184184 } ,
185- ast:: ConstDef ( it) => {
185+ ast:: Const ( it) => {
186186 let def = self . const_to_def( container. with_value( it) ) ?;
187187 DefWithBodyId :: from( def) . into( )
188188 } ,
@@ -222,8 +222,8 @@ impl SourceToDefCtx<'_, '_> {
222222 for container in src. cloned ( ) . ancestors_with_macros ( self . db . upcast ( ) ) . skip ( 1 ) {
223223 let res: DefWithBodyId = match_ast ! {
224224 match ( container. value) {
225- ast:: ConstDef ( it) => self . const_to_def( container. with_value( it) ) ?. into( ) ,
226- ast:: StaticDef ( it) => self . static_to_def( container. with_value( it) ) ?. into( ) ,
225+ ast:: Const ( it) => self . const_to_def( container. with_value( it) ) ?. into( ) ,
226+ ast:: Static ( it) => self . static_to_def( container. with_value( it) ) ?. into( ) ,
227227 ast:: Fn ( it) => self . fn_to_def( container. with_value( it) ) ?. into( ) ,
228228 _ => continue ,
229229 }
0 commit comments