Skip to content

Commit 7fa0605

Browse files
committed
---
yaml --- r: 68587 b: refs/heads/auto c: 451c943 h: refs/heads/master i: 68585: 7801eb8 68583: 0e71cd4 v: v3
1 parent 8ad3b67 commit 7fa0605

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: 87b61296a5cee1eaf7aecc130afa27d63887f707
17+
refs/heads/auto: 451c94343f2c49cfcc790816fd8587bfdc7ecfb8
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

branches/auto/src/libextra/treemap.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,25 +57,23 @@ impl<K: Eq + TotalOrd, V: Eq> Eq for TreeMap<K, V> {
5757
}
5858

5959
// Lexicographical comparison
60-
fn lt<K: Ord + TotalOrd, V: Ord>(a: &TreeMap<K, V>,
60+
fn lt<K: Ord + TotalOrd, V>(a: &TreeMap<K, V>,
6161
b: &TreeMap<K, V>) -> bool {
6262
let mut x = a.iter();
6363
let mut y = b.iter();
6464

6565
let (a_len, b_len) = (a.len(), b.len());
6666
for uint::min(a_len, b_len).times {
67-
let (key_a, value_a) = x.next().unwrap();
68-
let (key_b, value_b) = y.next().unwrap();
67+
let (key_a,_) = x.next().unwrap();
68+
let (key_b,_) = y.next().unwrap();
6969
if *key_a < *key_b { return true; }
7070
if *key_a > *key_b { return false; }
71-
if *value_a < *value_b { return true; }
72-
if *value_a > *value_b { return false; }
73-
}
71+
};
7472

7573
a_len < b_len
7674
}
7775

78-
impl<K: Ord + TotalOrd, V: Ord> Ord for TreeMap<K, V> {
76+
impl<K: Ord + TotalOrd, V> Ord for TreeMap<K, V> {
7977
#[inline]
8078
fn lt(&self, other: &TreeMap<K, V>) -> bool { lt(self, other) }
8179
#[inline]
@@ -937,7 +935,7 @@ mod test_treemap {
937935
assert!(b.insert(0, 5));
938936
assert!(a < b);
939937
assert!(a.insert(0, 7));
940-
assert!(!(a < b) && b < a);
938+
assert!(!(a < b) && !(b < a));
941939
assert!(b.insert(-2, 0));
942940
assert!(b < a);
943941
assert!(a.insert(-5, 2));

branches/auto/src/librusti/rusti.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,8 @@ pub fn main() {
511511
}
512512
}
513513

514-
#[cfg(test)]
514+
//#[cfg(test)]
515+
#[cfg(ignore)] // FIXME #7541 doesn't work under cross-compile
515516
mod tests {
516517
use std::io;
517518
use std::iterator::IteratorUtil;

0 commit comments

Comments
 (0)