@@ -1098,7 +1098,7 @@ impl visibility {
10981098 }
10991099}
11001100
1101- #[ deriving( Eq , Encodable , Decodable , IterBytes ) ]
1101+ #[ deriving( Clone , Eq , Encodable , Decodable , IterBytes ) ]
11021102pub struct struct_field_ {
11031103 kind : struct_field_kind ,
11041104 id : NodeId ,
@@ -1108,15 +1108,15 @@ pub struct struct_field_ {
11081108
11091109pub type struct_field = Spanned < struct_field_ > ;
11101110
1111- #[ deriving( Eq , Encodable , Decodable , IterBytes ) ]
1111+ #[ deriving( Clone , Eq , Encodable , Decodable , IterBytes ) ]
11121112pub enum struct_field_kind {
11131113 named_field( Ident , visibility ) ,
11141114 unnamed_field // element of a tuple-like struct
11151115}
11161116
11171117#[ deriving( Eq , Encodable , Decodable , IterBytes ) ]
11181118pub struct struct_def {
1119- fields : ~[ @ struct_field ] , /* fields, not including ctor */
1119+ fields : ~[ struct_field ] , /* fields, not including ctor */
11201120 /* ID of the constructor. This is only used for tuple- or enum-like
11211121 * structs. */
11221122 ctor_id : Option < NodeId >
0 commit comments