diff --git a/src/libcollections/dlist.rs b/src/libcollections/dlist.rs index 5e3ce75eb9586..e3bae4dfa94c1 100644 --- a/src/libcollections/dlist.rs +++ b/src/libcollections/dlist.rs @@ -683,6 +683,8 @@ impl PartialEq for DList { } } +impl Eq for DList {} + impl PartialOrd for DList { fn partial_cmp(&self, other: &DList) -> Option { iter::order::partial_cmp(self.iter(), other.iter()) diff --git a/src/libcollections/ringbuf.rs b/src/libcollections/ringbuf.rs index 44b546f665688..1ce5b41ffb7e9 100644 --- a/src/libcollections/ringbuf.rs +++ b/src/libcollections/ringbuf.rs @@ -452,6 +452,8 @@ impl PartialEq for RingBuf { } } +impl Eq for RingBuf {} + impl PartialOrd for RingBuf { fn partial_cmp(&self, other: &RingBuf) -> Option { iter::order::partial_cmp(self.iter(), other.iter()) diff --git a/src/libcollections/treemap.rs b/src/libcollections/treemap.rs index 5de23b42f5c7d..7a4fe0652cdab 100644 --- a/src/libcollections/treemap.rs +++ b/src/libcollections/treemap.rs @@ -173,6 +173,8 @@ impl PartialEq for TreeMap { } } +impl Eq for TreeMap {} + impl PartialOrd for TreeMap { #[inline] fn partial_cmp(&self, other: &TreeMap) -> Option { @@ -1010,6 +1012,8 @@ impl PartialEq for TreeSet { fn eq(&self, other: &TreeSet) -> bool { self.map == other.map } } +impl Eq for TreeSet {} + impl PartialOrd for TreeSet { #[inline] fn partial_cmp(&self, other: &TreeSet) -> Option {