@@ -96,19 +96,15 @@ pub struct mt {
96
96
mutbl : ast:: mutability ,
97
97
}
98
98
99
- #[ auto_encode]
100
- #[ auto_decode]
101
- #[ deriving( Eq ) ]
99
+ #[ deriving( Eq , Encodable , Decodable ) ]
102
100
pub enum vstore {
103
101
vstore_fixed( uint ) ,
104
102
vstore_uniq,
105
103
vstore_box,
106
104
vstore_slice( Region )
107
105
}
108
106
109
- #[ auto_encode]
110
- #[ auto_decode]
111
- #[ deriving( Eq , IterBytes ) ]
107
+ #[ deriving( Eq , IterBytes , Encodable , Decodable ) ]
112
108
pub enum TraitStore {
113
109
BoxTraitStore , // @Trait
114
110
UniqTraitStore , // ~Trait
@@ -117,9 +113,7 @@ pub enum TraitStore {
117
113
118
114
// XXX: This should probably go away at some point. Maybe after destructors
119
115
// do?
120
- #[ auto_encode]
121
- #[ auto_decode]
122
- #[ deriving( Eq ) ]
116
+ #[ deriving( Eq , Encodable , Decodable ) ]
123
117
pub enum SelfMode {
124
118
ByCopy ,
125
119
ByRef ,
@@ -197,27 +191,22 @@ pub enum ast_ty_to_ty_cache_entry {
197
191
198
192
pub type opt_region_variance = Option < region_variance > ;
199
193
200
- #[ auto_encode]
201
- #[ auto_decode]
202
- #[ deriving( Eq ) ]
194
+ #[ deriving( Eq , Decodable , Encodable ) ]
203
195
pub enum region_variance { rv_covariant, rv_invariant, rv_contravariant }
204
196
205
- #[ auto_encode]
206
- #[ auto_decode]
197
+ #[ deriving( Decodable , Encodable ) ]
207
198
pub enum AutoAdjustment {
208
199
AutoAddEnv ( ty:: Region , ast:: Sigil ) ,
209
200
AutoDerefRef ( AutoDerefRef )
210
201
}
211
202
212
- #[ auto_encode]
213
- #[ auto_decode]
203
+ #[ deriving( Decodable , Encodable ) ]
214
204
pub struct AutoDerefRef {
215
205
autoderefs : uint ,
216
206
autoref : Option < AutoRef >
217
207
}
218
208
219
- #[ auto_encode]
220
- #[ auto_decode]
209
+ #[ deriving( Decodable , Encodable ) ]
221
210
pub enum AutoRef {
222
211
/// Convert from T to &T
223
212
AutoPtr ( Region , ast:: mutability ) ,
@@ -453,9 +442,7 @@ pub struct param_ty {
453
442
}
454
443
455
444
/// Representation of regions:
456
- #[ auto_encode]
457
- #[ auto_decode]
458
- #[ deriving( Eq , IterBytes ) ]
445
+ #[ deriving( Eq , IterBytes , Encodable , Decodable ) ]
459
446
pub enum Region {
460
447
/// Bound regions are found (primarily) in function types. They indicate
461
448
/// region parameters that have yet to be replaced with actual regions
@@ -501,17 +488,13 @@ pub impl Region {
501
488
}
502
489
}
503
490
504
- #[ auto_encode]
505
- #[ auto_decode]
506
- #[ deriving( Eq , IterBytes ) ]
491
+ #[ deriving( Eq , IterBytes , Encodable , Decodable ) ]
507
492
pub struct FreeRegion {
508
493
scope_id : node_id ,
509
494
bound_region : bound_region
510
495
}
511
496
512
- #[ auto_encode]
513
- #[ auto_decode]
514
- #[ deriving( Eq , IterBytes ) ]
497
+ #[ deriving( Eq , IterBytes , Encodable , Decodable ) ]
515
498
pub enum bound_region {
516
499
/// The self region for structs, impls (&T in a type defn or &'self T)
517
500
br_self,
@@ -742,9 +725,7 @@ pub struct IntVid(uint);
742
725
#[ deriving( Eq ) ]
743
726
pub struct FloatVid ( uint ) ;
744
727
745
- #[ deriving( Eq ) ]
746
- #[ auto_encode]
747
- #[ auto_decode]
728
+ #[ deriving( Eq , Encodable , Decodable ) ]
748
729
pub struct RegionVid {
749
730
id : uint
750
731
}
@@ -777,8 +758,7 @@ impl to_bytes::IterBytes for InferTy {
777
758
}
778
759
}
779
760
780
- #[ auto_encode]
781
- #[ auto_decode]
761
+ #[ deriving( Encodable , Decodable ) ]
782
762
pub enum InferRegion {
783
763
ReVar ( RegionVid ) ,
784
764
ReSkolemized ( uint , bound_region )
0 commit comments