about summary refs log tree commit diff
path: root/src/libextra
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2014-02-24 08:11:00 -0500
committerDaniel Micay <danielmicay@gmail.com>2014-03-07 22:45:22 -0500
commit4d7d101a76deea69e9078d9ed6bb93ecca70e52a (patch)
tree3365108e59d5c6d4ee0655347ce3ed447cc7d016 /src/libextra
parent33768c46ec980a911284d77804e5e45ead6530eb (diff)
downloadrust-4d7d101a76deea69e9078d9ed6bb93ecca70e52a.tar.gz
rust-4d7d101a76deea69e9078d9ed6bb93ecca70e52a.zip
create a sensible comparison trait hierarchy
* `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/libextra')
-rw-r--r--src/libextra/workcache.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libextra/workcache.rs b/src/libextra/workcache.rs
index 2a2493688e6..0d627317242 100644
--- a/src/libextra/workcache.rs
+++ b/src/libextra/workcache.rs
@@ -88,7 +88,7 @@ use std::io::{File, MemWriter};
 *
 */
 
-#[deriving(Clone, Eq, Encodable, Decodable, TotalOrd, TotalEq)]
+#[deriving(Clone, Eq, Encodable, Decodable, Ord, TotalOrd, TotalEq)]
 struct WorkKey {
     kind: ~str,
     name: ~str