From bba701c59d84eac4e20d0796ec06db8d1cdd39cf Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sat, 31 May 2014 10:43:52 -0700 Subject: std: Drop Total from Total{Eq,Ord} This completes the last stage of the renaming of the comparison hierarchy of traits. This change renames TotalEq to Eq and TotalOrd to Ord. In the future the new Eq/Ord will be filled out with their appropriate methods, but for now this change is purely a renaming change. [breaking-change] --- src/libserialize/collection_impls.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/libserialize') diff --git a/src/libserialize/collection_impls.rs b/src/libserialize/collection_impls.rs index 7ca0f372891..04cd861d687 100644 --- a/src/libserialize/collection_impls.rs +++ b/src/libserialize/collection_impls.rs @@ -76,7 +76,7 @@ impl,T:Decodable> Decodable for RingBuf { impl< E, S: Encoder, - K: Encodable + PartialEq + TotalOrd, + K: Encodable + PartialEq + Ord, V: Encodable + PartialEq > Encodable for TreeMap { fn encode(&self, e: &mut S) -> Result<(), E> { @@ -95,7 +95,7 @@ impl< impl< E, D: Decoder, - K: Decodable + PartialEq + TotalOrd, + K: Decodable + PartialEq + Ord, V: Decodable + PartialEq > Decodable for TreeMap { fn decode(d: &mut D) -> Result, E> { @@ -114,7 +114,7 @@ impl< impl< E, S: Encoder, - T: Encodable + PartialEq + TotalOrd + T: Encodable + PartialEq + Ord > Encodable for TreeSet { fn encode(&self, s: &mut S) -> Result<(), E> { s.emit_seq(self.len(), |s| { @@ -131,7 +131,7 @@ impl< impl< E, D: Decoder, - T: Decodable + PartialEq + TotalOrd + T: Decodable + PartialEq + Ord > Decodable for TreeSet { fn decode(d: &mut D) -> Result, E> { d.read_seq(|d, len| { @@ -178,7 +178,7 @@ impl< impl< E, S: Encoder, - K: Encodable + Hash + TotalEq, + K: Encodable + Hash + Eq, V: Encodable, X, H: Hasher @@ -199,7 +199,7 @@ impl< impl< E, D: Decoder, - K: Decodable + Hash + TotalEq, + K: Decodable + Hash + Eq, V: Decodable, S, H: Hasher + Default @@ -221,7 +221,7 @@ impl< impl< E, S: Encoder, - T: Encodable + Hash + TotalEq, + T: Encodable + Hash + Eq, X, H: Hasher > Encodable for HashSet { @@ -240,7 +240,7 @@ impl< impl< E, D: Decoder, - T: Decodable + Hash + TotalEq, + T: Decodable + Hash + Eq, S, H: Hasher + Default > Decodable for HashSet { -- cgit 1.4.1-3-g733a5