Skip to content

Commit ef2ab4e

Browse files
committed
---
yaml --- r: 127067 b: refs/heads/snap-stage3 c: 3737c53 h: refs/heads/master i: 127065: 0eaa9af 127063: 35aac8f v: v3
1 parent 6e3e6a1 commit ef2ab4e

File tree

4 files changed

+29
-1
lines changed

4 files changed

+29
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 7be8f0af0393dcdb077c2f6b1653836fd3fba235
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 25acfde39864304c902293328f3492871ad0cbc8
4+
refs/heads/snap-stage3: 3737c537c3bb1aa96ddfd934fd4c48839249f5eb
55
refs/heads/try: 502e4c045236682e9728539dc0d2b3d0b237f55c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libcollections/dlist.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,13 @@ impl<A: PartialOrd> PartialOrd for DList<A> {
691691
}
692692
}
693693

694+
impl<A: Ord> Ord for DList<A> {
695+
#[inline]
696+
fn cmp(&self, other: &DList<A>) -> Ordering {
697+
iter::order::cmp(self.iter(), other.iter())
698+
}
699+
}
700+
694701
impl<A: Clone> Clone for DList<A> {
695702
fn clone(&self) -> DList<A> {
696703
self.iter().map(|x| x.clone()).collect()

branches/snap-stage3/src/libcollections/ringbuf.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,13 @@ impl<A: PartialOrd> PartialOrd for RingBuf<A> {
460460
}
461461
}
462462

463+
impl<A: Ord> Ord for RingBuf<A> {
464+
#[inline]
465+
fn cmp(&self, other: &RingBuf<A>) -> Ordering {
466+
iter::order::cmp(self.iter(), other.iter())
467+
}
468+
}
469+
463470
impl<S: Writer, A: Hash<S>> Hash<S> for RingBuf<A> {
464471
fn hash(&self, state: &mut S) {
465472
self.len().hash(state);

branches/snap-stage3/src/libcollections/treemap.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,13 @@ impl<K: Ord, V: PartialOrd> PartialOrd for TreeMap<K, V> {
182182
}
183183
}
184184

185+
impl<K: Ord, V: Ord> Ord for TreeMap<K, V> {
186+
#[inline]
187+
fn cmp(&self, other: &TreeMap<K, V>) -> Ordering {
188+
iter::order::cmp(self.iter(), other.iter())
189+
}
190+
}
191+
185192
impl<K: Ord + Show, V: Show> Show for TreeMap<K, V> {
186193
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
187194
try!(write!(f, "{{"));
@@ -1021,6 +1028,13 @@ impl<T: Ord> PartialOrd for TreeSet<T> {
10211028
}
10221029
}
10231030

1031+
impl<T: Ord> Ord for TreeSet<T> {
1032+
#[inline]
1033+
fn cmp(&self, other: &TreeSet<T>) -> Ordering {
1034+
iter::order::cmp(self.iter(), other.iter())
1035+
}
1036+
}
1037+
10241038
impl<T: Ord + Show> Show for TreeSet<T> {
10251039
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
10261040
try!(write!(f, "{{"));

0 commit comments

Comments
 (0)