@@ -261,7 +261,7 @@ pub struct Crate {
261
261
262
262
pub type MetaItem = Spanned < MetaItem_ > ;
263
263
264
- #[ deriving( Clone , Encodable , Decodable , Eq , Hash , Show ) ]
264
+ #[ deriving( Clone , Eq , Encodable , Decodable , Hash , Show ) ]
265
265
pub enum MetaItem_ {
266
266
MetaWord ( InternedString ) ,
267
267
MetaList ( InternedString , Vec < Gc < MetaItem > > ) ,
@@ -423,7 +423,7 @@ pub enum LocalSource {
423
423
// FIXME (pending discussion of #1697, #2178...): local should really be
424
424
// a refinement on pat.
425
425
/// Local represents a `let` statement, e.g., `let <pat>:<ty> = <expr>;`
426
- #[ deriving( PartialEq , Eq , Encodable , Decodable , Hash , Show ) ]
426
+ #[ deriving( Clone , PartialEq , Eq , Encodable , Decodable , Hash , Show ) ]
427
427
pub struct Local {
428
428
pub ty : P < Ty > ,
429
429
pub pat : Gc < Pat > ,
@@ -435,7 +435,7 @@ pub struct Local {
435
435
436
436
pub type Decl = Spanned < Decl_ > ;
437
437
438
- #[ deriving( PartialEq , Eq , Encodable , Decodable , Hash , Show ) ]
438
+ #[ deriving( Clone , PartialEq , Eq , Encodable , Decodable , Hash , Show ) ]
439
439
pub enum Decl_ {
440
440
/// A local (let) binding:
441
441
DeclLocal ( Gc < Local > ) ,
@@ -677,7 +677,7 @@ pub struct MutTy {
677
677
pub mutbl : Mutability ,
678
678
}
679
679
680
- #[ deriving( PartialEq , Eq , Encodable , Decodable , Hash , Show ) ]
680
+ #[ deriving( Clone , PartialEq , Eq , Encodable , Decodable , Hash , Show ) ]
681
681
pub struct TypeField {
682
682
pub ident : Ident ,
683
683
pub mt : MutTy ,
@@ -1048,7 +1048,7 @@ pub type PathListItem = Spanned<PathListItem_>;
1048
1048
1049
1049
pub type ViewPath = Spanned < ViewPath_ > ;
1050
1050
1051
- #[ deriving( PartialEq , Eq , Encodable , Decodable , Hash , Show ) ]
1051
+ #[ deriving( Clone , PartialEq , Eq , Encodable , Decodable , Hash , Show ) ]
1052
1052
pub enum ViewPath_ {
1053
1053
1054
1054
/// `quux = foo::bar::baz`
@@ -1113,7 +1113,7 @@ pub struct Attribute_ {
1113
1113
/// that the ref_id is for. The impl_id maps to the "self type" of this impl.
1114
1114
/// If this impl is an ItemImpl, the impl_id is redundant (it could be the
1115
1115
/// same as the impl's node id).
1116
- #[ deriving( Clone , PartialEq , Eq , Encodable , Decodable , Hash , Show ) ]
1116
+ #[ deriving( Clone , PartialEq , Eq , Encodable , Decodable , Hash , Show ) ]
1117
1117
pub struct TraitRef {
1118
1118
pub path : Path ,
1119
1119
pub ref_id : NodeId ,
@@ -1169,7 +1169,7 @@ impl StructFieldKind {
1169
1169
}
1170
1170
}
1171
1171
1172
- #[ deriving( PartialEq , Eq , Encodable , Decodable , Hash , Show ) ]
1172
+ #[ deriving( Clone , PartialEq , Eq , Encodable , Decodable , Hash , Show ) ]
1173
1173
pub struct StructDef {
1174
1174
/// Fields, not including ctor
1175
1175
pub fields : Vec < StructField > ,
@@ -1219,7 +1219,7 @@ pub enum Item_ {
1219
1219
ItemMac ( Mac ) ,
1220
1220
}
1221
1221
1222
- #[ deriving( PartialEq , Eq , Encodable , Decodable , Hash , Show ) ]
1222
+ #[ deriving( Clone , PartialEq , Eq , Encodable , Decodable , Hash , Show ) ]
1223
1223
pub struct ForeignItem {
1224
1224
pub ident : Ident ,
1225
1225
pub attrs : Vec < Attribute > ,
@@ -1229,7 +1229,7 @@ pub struct ForeignItem {
1229
1229
pub vis : Visibility ,
1230
1230
}
1231
1231
1232
- #[ deriving( PartialEq , Eq , Encodable , Decodable , Hash , Show ) ]
1232
+ #[ deriving( Clone , PartialEq , Eq , Encodable , Decodable , Hash , Show ) ]
1233
1233
pub enum ForeignItem_ {
1234
1234
ForeignItemFn ( P < FnDecl > , Generics ) ,
1235
1235
ForeignItemStatic ( P < Ty > , /* is_mutbl */ bool ) ,
@@ -1238,7 +1238,7 @@ pub enum ForeignItem_ {
1238
1238
/// The data we save and restore about an inlined item or method. This is not
1239
1239
/// part of the AST that we parse from a file, but it becomes part of the tree
1240
1240
/// that we trans.
1241
- #[ deriving( PartialEq , Eq , Encodable , Decodable , Hash , Show ) ]
1241
+ #[ deriving( Clone , PartialEq , Eq , Encodable , Decodable , Hash , Show ) ]
1242
1242
pub enum InlinedItem {
1243
1243
IIItem ( Gc < Item > ) ,
1244
1244
IIMethod ( DefId /* impl id */ , bool /* is provided */ , Gc < Method > ) ,
0 commit comments