diff options
Diffstat (limited to 'src/libcollections/enum_set.rs')
| -rw-r--r-- | src/libcollections/enum_set.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcollections/enum_set.rs b/src/libcollections/enum_set.rs index 41501f2d261..797fbbcebf7 100644 --- a/src/libcollections/enum_set.rs +++ b/src/libcollections/enum_set.rs @@ -15,7 +15,7 @@ use std::num::Bitwise; -#[deriving(Clone, Eq, TotalEq, Hash, Show)] +#[deriving(Clone, PartialEq, TotalEq, Hash, Show)] /// A specialized Set implementation to use enum types. pub struct EnumSet<E> { // We must maintain the invariant that no bits are set @@ -141,7 +141,7 @@ mod test { use enum_set::{EnumSet, CLike}; - #[deriving(Eq, Show)] + #[deriving(PartialEq, Show)] #[repr(uint)] enum Foo { A, B, C |
