@@ -1105,7 +1105,7 @@ impl visibility {
11051105 }
11061106}
11071107
1108- #[ deriving( Eq , Encodable , Decodable , IterBytes ) ]
1108+ #[ deriving( Clone , Eq , Encodable , Decodable , IterBytes ) ]
11091109pub struct struct_field_ {
11101110 kind : struct_field_kind ,
11111111 id : NodeId ,
@@ -1115,15 +1115,15 @@ pub struct struct_field_ {
11151115
11161116pub type struct_field = Spanned < struct_field_ > ;
11171117
1118- #[ deriving( Eq , Encodable , Decodable , IterBytes ) ]
1118+ #[ deriving( Clone , Eq , Encodable , Decodable , IterBytes ) ]
11191119pub enum struct_field_kind {
11201120 named_field( Ident , visibility ) ,
11211121 unnamed_field // element of a tuple-like struct
11221122}
11231123
11241124#[ deriving( Eq , Encodable , Decodable , IterBytes ) ]
11251125pub struct struct_def {
1126- fields : ~[ @ struct_field ] , /* fields, not including ctor */
1126+ fields : ~[ struct_field ] , /* fields, not including ctor */
11271127 /* ID of the constructor. This is only used for tuple- or enum-like
11281128 * structs. */
11291129 ctor_id : Option < NodeId >
0 commit comments