@@ -3184,38 +3184,6 @@ pub struct StaticItem {
3184
3184
pub expr : Option < P < Expr > > ,
3185
3185
}
3186
3186
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
-
3219
3187
#[ derive( Clone , Encodable , Decodable , Debug ) ]
3220
3188
pub struct ConstItem {
3221
3189
pub defaultness : Defaultness ,
@@ -3430,7 +3398,7 @@ impl TryFrom<ItemKind> for AssocItemKind {
3430
3398
#[ derive( Clone , Encodable , Decodable , Debug ) ]
3431
3399
pub enum ForeignItemKind {
3432
3400
/// A foreign static item (`static FOO: u8`).
3433
- Static ( Box < StaticForeignItem > ) ,
3401
+ Static ( Box < StaticItem > ) ,
3434
3402
/// An foreign function.
3435
3403
Fn ( Box < Fn > ) ,
3436
3404
/// An foreign type.
0 commit comments