Skip to content

Commit 789c907

Browse files
committed
---
yaml --- r: 132437 b: refs/heads/dist-snap c: 3737c53 h: refs/heads/master i: 132435: 32706a4 v: v3
1 parent 874b48a commit 789c907

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
@@ -6,7 +6,7 @@ refs/heads/try: 457a3c991d79b971be07fce75f9d0c12848fb37c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 25acfde39864304c902293328f3492871ad0cbc8
9+
refs/heads/dist-snap: 3737c537c3bb1aa96ddfd934fd4c48839249f5eb
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/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/dist-snap/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/dist-snap/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)