Skip to content

Commit b3b1a92

Browse files
thestingergraydon
authored andcommitted
---
yaml --- r: 42456 b: refs/heads/try c: cae273a h: refs/heads/master v: v3
1 parent 1dc0ec9 commit b3b1a92

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 19dfec2aaf746535de1521f68421f9980dbf25de
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
5-
refs/heads/try: 1e5c553b7c98185adecf3564e618e70fcd136ce6
5+
refs/heads/try: cae273abc04fc606a73db5fb4b34a464f83d3488
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278

branches/try/src/libstd/treemap.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ pub struct TreeMap<K: Ord, V> {
4242
impl <K: Eq Ord, V: Eq> TreeMap<K, V>: Eq {
4343
pure fn eq(&self, other: &TreeMap<K, V>) -> bool {
4444
if self.len() != other.len() {
45-
return false
46-
}
47-
unsafe { // purity workaround
45+
false
46+
} else unsafe { // unsafe used as a purity workaround
4847
let mut x = self.iter();
4948
let mut y = other.iter();
5049
for self.len().times {

0 commit comments

Comments
 (0)