@@ -2891,7 +2891,7 @@ pub struct Fn {
28912891}
28922892
28932893#[ derive( Clone , Encodable , Decodable , Debug ) ]
2894- pub struct Static {
2894+ pub struct StaticItem {
28952895 pub ty : P < Ty > ,
28962896 pub mutability : Mutability ,
28972897 pub expr : Option < P < Expr > > ,
@@ -2917,7 +2917,7 @@ pub enum ItemKind {
29172917 /// A static item (`static`).
29182918 ///
29192919 /// E.g., `static FOO: i32 = 42;` or `static FOO: &'static str = "bar";`.
2920- Static ( Box < Static > ) ,
2920+ Static ( Box < StaticItem > ) ,
29212921 /// A constant item (`const`).
29222922 ///
29232923 /// E.g., `const FOO: i32 = 42;`.
@@ -3099,7 +3099,7 @@ impl From<ForeignItemKind> for ItemKind {
30993099 fn from ( foreign_item_kind : ForeignItemKind ) -> ItemKind {
31003100 match foreign_item_kind {
31013101 ForeignItemKind :: Static ( a, b, c) => {
3102- ItemKind :: Static ( Static { ty : a, mutability : b, expr : c } . into ( ) )
3102+ ItemKind :: Static ( StaticItem { ty : a, mutability : b, expr : c } . into ( ) )
31033103 }
31043104 ForeignItemKind :: Fn ( fn_kind) => ItemKind :: Fn ( fn_kind) ,
31053105 ForeignItemKind :: TyAlias ( ty_alias_kind) => ItemKind :: TyAlias ( ty_alias_kind) ,
@@ -3113,7 +3113,7 @@ impl TryFrom<ItemKind> for ForeignItemKind {
31133113
31143114 fn try_from ( item_kind : ItemKind ) -> Result < ForeignItemKind , ItemKind > {
31153115 Ok ( match item_kind {
3116- ItemKind :: Static ( box Static { ty : a, mutability : b, expr : c } ) => {
3116+ ItemKind :: Static ( box StaticItem { ty : a, mutability : b, expr : c } ) => {
31173117 ForeignItemKind :: Static ( a, b, c)
31183118 }
31193119 ItemKind :: Fn ( fn_kind) => ForeignItemKind :: Fn ( fn_kind) ,
0 commit comments