@@ -125,7 +125,7 @@ impl Normalizable for Timespec {
125125 }
126126}
127127
128- #[ deriving( PartialEq , TotalEq ) ]
128+ #[ deriving( PartialEq , Eq ) ]
129129enum BoundSide {
130130 Upper ,
131131 Lower
@@ -156,7 +156,7 @@ impl BoundSided for LowerBound {
156156}
157157
158158/// The type of a range bound
159- #[ deriving( PartialEq , TotalEq , Clone ) ]
159+ #[ deriving( PartialEq , Eq , Clone ) ]
160160pub enum BoundType {
161161 /// The bound includes its value
162162 Inclusive ,
@@ -207,7 +207,7 @@ impl<S: BoundSided, T: PartialEq> PartialEq for RangeBound<S, T> {
207207 }
208208}
209209
210- impl < S : BoundSided , T : TotalEq > TotalEq for RangeBound < S , T > { }
210+ impl < S : BoundSided , T : Eq > Eq for RangeBound < S , T > { }
211211
212212impl < S : BoundSided , T : PartialOrd > PartialOrd for RangeBound < S , T > {
213213 fn lt ( & self , other : & RangeBound < S , T > ) -> bool {
@@ -219,7 +219,7 @@ impl<S: BoundSided, T: PartialOrd> PartialOrd for RangeBound<S, T> {
219219 }
220220}
221221
222- impl < S : BoundSided , T : TotalOrd > TotalOrd for RangeBound < S , T > {
222+ impl < S : BoundSided , T : Ord > Ord for RangeBound < S , T > {
223223 fn cmp ( & self , other : & RangeBound < S , T > ) -> Ordering {
224224 match ( BoundSided :: side ( None :: < S > ) , self . type_ , other. type_ ,
225225 self . value . cmp ( & other. value ) ) {
@@ -256,7 +256,7 @@ impl<'a, S: BoundSided, T: PartialEq> PartialEq for OptBound<'a, S, T> {
256256 }
257257}
258258
259- impl < ' a , S : BoundSided , T : TotalEq > TotalEq for OptBound < ' a , S , T > { }
259+ impl < ' a , S : BoundSided , T : Eq > Eq for OptBound < ' a , S , T > { }
260260
261261impl < ' a , S : BoundSided , T : PartialOrd > PartialOrd for OptBound < ' a , S , T > {
262262 fn lt ( & self , other : & OptBound < ' a , S , T > ) -> bool {
@@ -270,12 +270,12 @@ impl<'a, S: BoundSided, T: PartialOrd> PartialOrd for OptBound<'a, S, T> {
270270}
271271
272272/// Represents a range of values.
273- #[ deriving( PartialEq , TotalEq , Clone ) ]
273+ #[ deriving( PartialEq , Eq , Clone ) ]
274274pub struct Range < T > {
275275 inner : InnerRange < T > ,
276276}
277277
278- #[ deriving( PartialEq , TotalEq , Clone ) ]
278+ #[ deriving( PartialEq , Eq , Clone ) ]
279279enum InnerRange < T > {
280280 Empty ,
281281 Normal ( Option < RangeBound < LowerBound , T > > ,
0 commit comments