@@ -2891,7 +2891,7 @@ pub struct Fn {
2891
2891
}
2892
2892
2893
2893
#[ derive( Clone , Encodable , Decodable , Debug ) ]
2894
- pub struct Static {
2894
+ pub struct StaticItem {
2895
2895
pub ty : P < Ty > ,
2896
2896
pub mutability : Mutability ,
2897
2897
pub expr : Option < P < Expr > > ,
@@ -2917,7 +2917,7 @@ pub enum ItemKind {
2917
2917
/// A static item (`static`).
2918
2918
///
2919
2919
/// E.g., `static FOO: i32 = 42;` or `static FOO: &'static str = "bar";`.
2920
- Static ( Box < Static > ) ,
2920
+ Static ( Box < StaticItem > ) ,
2921
2921
/// A constant item (`const`).
2922
2922
///
2923
2923
/// E.g., `const FOO: i32 = 42;`.
@@ -3099,7 +3099,7 @@ impl From<ForeignItemKind> for ItemKind {
3099
3099
fn from ( foreign_item_kind : ForeignItemKind ) -> ItemKind {
3100
3100
match foreign_item_kind {
3101
3101
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 ( ) )
3103
3103
}
3104
3104
ForeignItemKind :: Fn ( fn_kind) => ItemKind :: Fn ( fn_kind) ,
3105
3105
ForeignItemKind :: TyAlias ( ty_alias_kind) => ItemKind :: TyAlias ( ty_alias_kind) ,
@@ -3113,7 +3113,7 @@ impl TryFrom<ItemKind> for ForeignItemKind {
3113
3113
3114
3114
fn try_from ( item_kind : ItemKind ) -> Result < ForeignItemKind , ItemKind > {
3115
3115
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 } ) => {
3117
3117
ForeignItemKind :: Static ( a, b, c)
3118
3118
}
3119
3119
ItemKind :: Fn ( fn_kind) => ForeignItemKind :: Fn ( fn_kind) ,
0 commit comments