Skip to content

Commit 3525123

Browse files
committed
---
yaml --- r: 126201 b: refs/heads/auto c: 3737c53 h: refs/heads/master i: 126199: 8ccfb6f v: v3
1 parent ef29250 commit 3525123

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
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 25acfde39864304c902293328f3492871ad0cbc8
16+
refs/heads/auto: 3737c537c3bb1aa96ddfd934fd4c48839249f5eb
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/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/auto/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/auto/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)