@@ -83,8 +83,8 @@ impl Ctx {
8383 | ast:: Item :: Enum ( _)
8484 | ast:: Item :: Fn ( _)
8585 | ast:: Item :: TypeAlias ( _)
86- | ast:: Item :: ConstDef ( _)
87- | ast:: Item :: StaticDef ( _)
86+ | ast:: Item :: Const ( _)
87+ | ast:: Item :: Static ( _)
8888 | ast:: Item :: MacroCall ( _) => {
8989 // Skip this if we're already collecting inner items. We'll descend into all nodes
9090 // already.
@@ -108,8 +108,8 @@ impl Ctx {
108108 ast:: Item :: Enum ( ast) => self . lower_enum ( ast) . map ( Into :: into) ,
109109 ast:: Item :: Fn ( ast) => self . lower_function ( ast) . map ( Into :: into) ,
110110 ast:: Item :: TypeAlias ( ast) => self . lower_type_alias ( ast) . map ( Into :: into) ,
111- ast:: Item :: StaticDef ( ast) => self . lower_static ( ast) . map ( Into :: into) ,
112- ast:: Item :: ConstDef ( ast) => Some ( self . lower_const ( ast) . into ( ) ) ,
111+ ast:: Item :: Static ( ast) => self . lower_static ( ast) . map ( Into :: into) ,
112+ ast:: Item :: Const ( ast) => Some ( self . lower_const ( ast) . into ( ) ) ,
113113 ast:: Item :: Module ( ast) => self . lower_module ( ast) . map ( Into :: into) ,
114114 ast:: Item :: TraitDef ( ast) => self . lower_trait ( ast) . map ( Into :: into) ,
115115 ast:: Item :: ImplDef ( ast) => self . lower_impl ( ast) . map ( Into :: into) ,
@@ -160,7 +160,7 @@ impl Ctx {
160160 match item {
161161 ast:: AssocItem :: Fn ( ast) => self . lower_function ( ast) . map ( Into :: into) ,
162162 ast:: AssocItem :: TypeAlias ( ast) => self . lower_type_alias ( ast) . map ( Into :: into) ,
163- ast:: AssocItem :: ConstDef ( ast) => Some ( self . lower_const ( ast) . into ( ) ) ,
163+ ast:: AssocItem :: Const ( ast) => Some ( self . lower_const ( ast) . into ( ) ) ,
164164 ast:: AssocItem :: MacroCall ( ast) => self . lower_macro_call ( ast) . map ( Into :: into) ,
165165 }
166166 }
@@ -368,7 +368,7 @@ impl Ctx {
368368 Some ( id ( self . data ( ) . type_aliases . alloc ( res) ) )
369369 }
370370
371- fn lower_static ( & mut self , static_ : & ast:: StaticDef ) -> Option < FileItemTreeId < Static > > {
371+ fn lower_static ( & mut self , static_ : & ast:: Static ) -> Option < FileItemTreeId < Static > > {
372372 let name = static_. name ( ) ?. as_name ( ) ;
373373 let type_ref = self . lower_type_ref_opt ( static_. ascribed_type ( ) ) ;
374374 let visibility = self . lower_visibility ( static_) ;
@@ -378,7 +378,7 @@ impl Ctx {
378378 Some ( id ( self . data ( ) . statics . alloc ( res) ) )
379379 }
380380
381- fn lower_const ( & mut self , konst : & ast:: ConstDef ) -> FileItemTreeId < Const > {
381+ fn lower_const ( & mut self , konst : & ast:: Const ) -> FileItemTreeId < Const > {
382382 let name = konst. name ( ) . map ( |it| it. as_name ( ) ) ;
383383 let type_ref = self . lower_type_ref_opt ( konst. ascribed_type ( ) ) ;
384384 let visibility = self . lower_visibility ( konst) ;
@@ -553,7 +553,7 @@ impl Ctx {
553553 self . data ( ) . functions [ func. index ] . is_unsafe = true ;
554554 func. into ( )
555555 }
556- ast:: ExternItem :: StaticDef ( ast) => {
556+ ast:: ExternItem :: Static ( ast) => {
557557 let statik = self . lower_static ( & ast) ?;
558558 statik. into ( )
559559 }
0 commit comments