@@ -3184,38 +3184,6 @@ pub struct StaticItem {
31843184 pub expr : Option < P < Expr > > ,
31853185}
31863186
3187- /// A static item in `extern` block.
3188- // This struct is identical to StaticItem for now but it's going to have a safety attribute.
3189- #[ derive( Clone , Encodable , Decodable , Debug ) ]
3190- pub struct StaticForeignItem {
3191- pub ty : P < Ty > ,
3192- pub safety : Safety ,
3193- pub mutability : Mutability ,
3194- pub expr : Option < P < Expr > > ,
3195- }
3196-
3197- impl From < StaticItem > for StaticForeignItem {
3198- fn from ( static_item : StaticItem ) -> StaticForeignItem {
3199- StaticForeignItem {
3200- ty : static_item. ty ,
3201- safety : static_item. safety ,
3202- mutability : static_item. mutability ,
3203- expr : static_item. expr ,
3204- }
3205- }
3206- }
3207-
3208- impl From < StaticForeignItem > for StaticItem {
3209- fn from ( static_item : StaticForeignItem ) -> StaticItem {
3210- StaticItem {
3211- ty : static_item. ty ,
3212- safety : static_item. safety ,
3213- mutability : static_item. mutability ,
3214- expr : static_item. expr ,
3215- }
3216- }
3217- }
3218-
32193187#[ derive( Clone , Encodable , Decodable , Debug ) ]
32203188pub struct ConstItem {
32213189 pub defaultness : Defaultness ,
@@ -3430,7 +3398,7 @@ impl TryFrom<ItemKind> for AssocItemKind {
34303398#[ derive( Clone , Encodable , Decodable , Debug ) ]
34313399pub enum ForeignItemKind {
34323400 /// A foreign static item (`static FOO: u8`).
3433- Static ( Box < StaticForeignItem > ) ,
3401+ Static ( Box < StaticItem > ) ,
34343402 /// An foreign function.
34353403 Fn ( Box < Fn > ) ,
34363404 /// An foreign type.
0 commit comments