@@ -65,10 +65,10 @@ impl SourceToDefCtx<'_, '_> {
6565 Some ( ModuleId { krate : parent_module. krate , local_id : child_id } )
6666 }
6767
68- pub ( super ) fn trait_to_def ( & mut self , src : InFile < ast:: TraitDef > ) -> Option < TraitId > {
68+ pub ( super ) fn trait_to_def ( & mut self , src : InFile < ast:: Trait > ) -> Option < TraitId > {
6969 self . to_def ( src, keys:: TRAIT )
7070 }
71- pub ( super ) fn impl_to_def ( & mut self , src : InFile < ast:: ImplDef > ) -> Option < ImplId > {
71+ pub ( super ) fn impl_to_def ( & mut self , src : InFile < ast:: Impl > ) -> Option < ImplId > {
7272 self . to_def ( src, keys:: IMPL )
7373 }
7474 pub ( super ) fn fn_to_def ( & mut self , src : InFile < ast:: Fn > ) -> Option < FunctionId > {
@@ -154,11 +154,11 @@ impl SourceToDefCtx<'_, '_> {
154154 let def = self . module_to_def( container. with_value( it) ) ?;
155155 def. into( )
156156 } ,
157- ast:: TraitDef ( it) => {
157+ ast:: Trait ( it) => {
158158 let def = self . trait_to_def( container. with_value( it) ) ?;
159159 def. into( )
160160 } ,
161- ast:: ImplDef ( it) => {
161+ ast:: Impl ( it) => {
162162 let def = self . impl_to_def( container. with_value( it) ) ?;
163163 def. into( )
164164 } ,
@@ -207,9 +207,9 @@ impl SourceToDefCtx<'_, '_> {
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( ) ,
209209 ast:: Enum ( it) => self . enum_to_def( container. with_value( it) ) ?. into( ) ,
210- ast:: TraitDef ( it) => self . trait_to_def( container. with_value( it) ) ?. into( ) ,
210+ ast:: Trait ( it) => self . trait_to_def( container. with_value( it) ) ?. into( ) ,
211211 ast:: TypeAlias ( it) => self . type_alias_to_def( container. with_value( it) ) ?. into( ) ,
212- ast:: ImplDef ( it) => self . impl_to_def( container. with_value( it) ) ?. into( ) ,
212+ ast:: Impl ( it) => self . impl_to_def( container. with_value( it) ) ?. into( ) ,
213213 _ => continue ,
214214 }
215215 } ;
0 commit comments