about summary refs log tree commit diff
path: root/src/libcollections
diff options
context:
space:
mode:
authorAlexis Beingessner <a.beingessner@gmail.com>2014-09-27 16:47:53 -0400
committerAlexis Beingessner <a.beingessner@gmail.com>2014-09-27 16:47:53 -0400
commite27308b31b6cfc0199d95e0b49e5d107f6528197 (patch)
treea1fdd4af4e0c1dbf86677b36b124dc508daa7040 /src/libcollections
parentef112fe185a49ad9c49722702a695d8bd6b9df47 (diff)
downloadrust-e27308b31b6cfc0199d95e0b49e5d107f6528197.tar.gz
rust-e27308b31b6cfc0199d95e0b49e5d107f6528197.zip
make EnumSet derive Ord and PartialOrd
Diffstat (limited to 'src/libcollections')
-rw-r--r--src/libcollections/enum_set.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcollections/enum_set.rs b/src/libcollections/enum_set.rs
index 02396dc13d1..f282549f6f9 100644
--- a/src/libcollections/enum_set.rs
+++ b/src/libcollections/enum_set.rs
@@ -16,7 +16,7 @@
 use core::prelude::*;
 use core::fmt;
 
-#[deriving(Clone, PartialEq, Eq, Hash)]
+#[deriving(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
 /// A specialized `Set` implementation to use enum types.
 pub struct EnumSet<E> {
     // We must maintain the invariant that no bits are set