about summary refs log tree commit diff
path: root/src/libstd/vec.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-03-07 20:36:42 -0800
committerbors <bors@rust-lang.org>2014-03-07 20:36:42 -0800
commit96e8c00e95b1980c429c5cfa4aae33e3cc60f3c5 (patch)
tree1dcb1676da02712aae8573cf3b1dabd307b92533 /src/libstd/vec.rs
parent4c90a7f018e19f94d7c32a96bf608fbd3ab56e12 (diff)
parent4d7d101a76deea69e9078d9ed6bb93ecca70e52a (diff)
downloadrust-96e8c00e95b1980c429c5cfa4aae33e3cc60f3c5.tar.gz
rust-96e8c00e95b1980c429c5cfa4aae33e3cc60f3c5.zip
auto merge of #12520 : thestinger/rust/cmp, r=brson
* `Ord` inherits from `Eq`
* `TotalOrd` inherits from `TotalEq`
* `TotalOrd` inherits from `Ord`
* `TotalEq` inherits from `Eq`

This is a partial implementation of #12517.
Diffstat (limited to 'src/libstd/vec.rs')
-rw-r--r--src/libstd/vec.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/vec.rs b/src/libstd/vec.rs
index 59136c99ec9..69bf5f5d0fc 100644
--- a/src/libstd/vec.rs
+++ b/src/libstd/vec.rs
@@ -682,7 +682,7 @@ pub mod traits {
         fn cmp(&self, other: &~[T]) -> Ordering { self.as_slice().cmp(&other.as_slice()) }
     }
 
-    impl<'a, T: Eq + Ord> Ord for &'a [T] {
+    impl<'a, T: Ord> Ord for &'a [T] {
         fn lt(&self, other: & &'a [T]) -> bool {
             order::lt(self.iter(), other.iter())
         }
@@ -700,7 +700,7 @@ pub mod traits {
         }
     }
 
-    impl<T: Eq + Ord> Ord for ~[T] {
+    impl<T: Ord> Ord for ~[T] {
         #[inline]
         fn lt(&self, other: &~[T]) -> bool { self.as_slice() < other.as_slice() }
         #[inline]