@@ -246,7 +246,7 @@ pub struct mt<'tcx> {
246
246
pub mutbl : ast:: Mutability ,
247
247
}
248
248
249
- #[ deriving( Clone , Copy , PartialEq , Eq , Hash , Encodable , Decodable , Show ) ]
249
+ #[ deriving( Clone , Copy , PartialEq , Eq , Hash , RustcEncodable , RustcDecodable , Show ) ]
250
250
pub enum TraitStore {
251
251
/// Box<Trait>
252
252
UniqTraitStore ,
@@ -277,13 +277,13 @@ pub enum ast_ty_to_ty_cache_entry<'tcx> {
277
277
atttce_resolved( Ty < ' tcx > ) /* resolved to a type, irrespective of region */
278
278
}
279
279
280
- #[ deriving( Clone , PartialEq , Decodable , Encodable ) ]
280
+ #[ deriving( Clone , PartialEq , RustcDecodable , RustcEncodable ) ]
281
281
pub struct ItemVariances {
282
282
pub types : VecPerParamSpace < Variance > ,
283
283
pub regions : VecPerParamSpace < Variance > ,
284
284
}
285
285
286
- #[ deriving( Clone , Copy , PartialEq , Decodable , Encodable , Show ) ]
286
+ #[ deriving( Clone , PartialEq , RustcDecodable , RustcEncodable , Show , Copy ) ]
287
287
pub enum Variance {
288
288
Covariant , // T<A> <: T<B> iff A <: B -- e.g., function return type
289
289
Invariant , // T<A> <: T<B> iff B == A -- e.g., type of mutable cell
@@ -430,7 +430,7 @@ pub fn type_of_adjust<'tcx>(cx: &ctxt<'tcx>, adj: &AutoAdjustment<'tcx>) -> Opti
430
430
}
431
431
}
432
432
433
- #[ deriving( Clone , Copy , Encodable , Decodable , PartialEq , PartialOrd , Show ) ]
433
+ #[ deriving( Clone , Copy , RustcEncodable , RustcDecodable , PartialEq , PartialOrd , Show ) ]
434
434
pub struct param_index {
435
435
pub space : subst:: ParamSpace ,
436
436
pub index : uint
@@ -510,7 +510,7 @@ pub struct MethodCall {
510
510
pub adjustment : ExprAdjustment
511
511
}
512
512
513
- #[ deriving( Clone , Copy , PartialEq , Eq , Hash , Show , Encodable , Decodable ) ]
513
+ #[ deriving( Clone , PartialEq , Eq , Hash , Show , RustcEncodable , RustcDecodable , Copy ) ]
514
514
pub enum ExprAdjustment {
515
515
NoAdjustment ,
516
516
AutoDeref ( uint ) ,
@@ -973,15 +973,15 @@ pub struct ParamTy {
973
973
/// is the outer fn.
974
974
///
975
975
/// [dbi]: http://en.wikipedia.org/wiki/De_Bruijn_index
976
- #[ deriving( Clone , Copy , PartialEq , Eq , Hash , Encodable , Decodable , Show ) ]
976
+ #[ deriving( Clone , PartialEq , Eq , Hash , RustcEncodable , RustcDecodable , Show , Copy ) ]
977
977
pub struct DebruijnIndex {
978
978
// We maintain the invariant that this is never 0. So 1 indicates
979
979
// the innermost binder. To ensure this, create with `DebruijnIndex::new`.
980
980
pub depth : uint ,
981
981
}
982
982
983
983
/// Representation of regions:
984
- #[ deriving( Clone , Copy , PartialEq , Eq , Hash , Encodable , Decodable , Show ) ]
984
+ #[ deriving( Clone , PartialEq , Eq , Hash , RustcEncodable , RustcDecodable , Show , Copy ) ]
985
985
pub enum Region {
986
986
// Region bound in a type or fn declaration which will be
987
987
// substituted 'early' -- that is, at the same time when type
@@ -1028,7 +1028,7 @@ pub struct UpvarId {
1028
1028
pub closure_expr_id : ast:: NodeId ,
1029
1029
}
1030
1030
1031
- #[ deriving( Clone , Copy , PartialEq , Eq , Hash , Show , Encodable , Decodable ) ]
1031
+ #[ deriving( Clone , PartialEq , Eq , Hash , Show , RustcEncodable , RustcDecodable , Copy ) ]
1032
1032
pub enum BorrowKind {
1033
1033
/// Data must be immutable and is aliasable.
1034
1034
ImmBorrow ,
@@ -1121,7 +1121,7 @@ pub enum BorrowKind {
1121
1121
/// - Through mutation, the borrowed upvars can actually escape
1122
1122
/// the closure, so sometimes it is necessary for them to be larger
1123
1123
/// than the closure lifetime itself.
1124
- #[ deriving( Copy , PartialEq , Clone , Encodable , Decodable , Show ) ]
1124
+ #[ deriving( PartialEq , Clone , RustcEncodable , RustcDecodable , Show , Copy ) ]
1125
1125
pub struct UpvarBorrow {
1126
1126
pub kind : BorrowKind ,
1127
1127
pub region : ty:: Region ,
@@ -1146,15 +1146,17 @@ impl Region {
1146
1146
}
1147
1147
}
1148
1148
1149
- #[ deriving( Clone , Copy , PartialEq , PartialOrd , Eq , Ord , Hash , Encodable , Decodable , Show ) ]
1149
+ #[ deriving( Clone , PartialEq , PartialOrd , Eq , Ord , Hash ,
1150
+ RustcEncodable , RustcDecodable , Show , Copy ) ]
1150
1151
/// A "free" region `fr` can be interpreted as "some region
1151
1152
/// at least as big as the scope `fr.scope`".
1152
1153
pub struct FreeRegion {
1153
1154
pub scope : region:: CodeExtent ,
1154
1155
pub bound_region : BoundRegion
1155
1156
}
1156
1157
1157
- #[ deriving( Clone , Copy , PartialEq , PartialOrd , Eq , Ord , Hash , Encodable , Decodable , Show ) ]
1158
+ #[ deriving( Clone , PartialEq , PartialOrd , Eq , Ord , Hash ,
1159
+ RustcEncodable , RustcDecodable , Show , Copy ) ]
1158
1160
pub enum BoundRegion {
1159
1161
/// An anonymous region parameter for a given fn (&T)
1160
1162
BrAnon ( uint ) ,
@@ -1412,7 +1414,8 @@ pub struct ExistentialBounds {
1412
1414
1413
1415
pub type BuiltinBounds = EnumSet < BuiltinBound > ;
1414
1416
1415
- #[ deriving( Copy , Clone , Encodable , PartialEq , Eq , Decodable , Hash , Show ) ]
1417
+ #[ deriving( Clone , RustcEncodable , PartialEq , Eq , RustcDecodable , Hash ,
1418
+ Show , Copy ) ]
1416
1419
#[ repr( uint) ]
1417
1420
pub enum BuiltinBound {
1418
1421
BoundSend ,
@@ -1463,7 +1466,7 @@ pub struct FloatVid {
1463
1466
pub index : uint
1464
1467
}
1465
1468
1466
- #[ deriving( Clone , Copy , PartialEq , Eq , Encodable , Decodable , Hash ) ]
1469
+ #[ deriving( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , Hash , Copy ) ]
1467
1470
pub struct RegionVid {
1468
1471
pub index : uint
1469
1472
}
@@ -1485,7 +1488,7 @@ pub enum InferTy {
1485
1488
FreshIntTy ( uint ) ,
1486
1489
}
1487
1490
1488
- #[ deriving( Clone , Copy , Encodable , Decodable , Eq , Hash , Show ) ]
1491
+ #[ deriving( Clone , RustcEncodable , RustcDecodable , Eq , Hash , Show , Copy ) ]
1489
1492
pub enum InferRegion {
1490
1493
ReVar ( RegionVid ) ,
1491
1494
ReSkolemized ( uint , BoundRegion )
@@ -1571,7 +1574,7 @@ pub struct TypeParameterDef<'tcx> {
1571
1574
pub default : Option < Ty < ' tcx > > ,
1572
1575
}
1573
1576
1574
- #[ deriving( Encodable , Decodable , Clone , Show ) ]
1577
+ #[ deriving( RustcEncodable , RustcDecodable , Clone , Show ) ]
1575
1578
pub struct RegionParameterDef {
1576
1579
pub name : ast:: Name ,
1577
1580
pub def_id : ast:: DefId ,
@@ -6223,7 +6226,7 @@ pub fn accumulate_lifetimes_in_type(accumulator: &mut Vec<ty::Region>,
6223
6226
}
6224
6227
6225
6228
/// A free variable referred to in a function.
6226
- #[ deriving( Copy , Encodable , Decodable ) ]
6229
+ #[ deriving( Copy , RustcEncodable , RustcDecodable ) ]
6227
6230
pub struct Freevar {
6228
6231
/// The variable being accessed free.
6229
6232
pub def : def:: Def ,
0 commit comments