Skip to content

Commit 5f08ef3

Browse files
thestingergraydon
authored andcommitted
---
yaml --- r: 42466 b: refs/heads/try c: 3df183e h: refs/heads/master v: v3
1 parent af97f61 commit 5f08ef3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
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: a73f4b1baa3533956582ec9892cc4d1780e45ed0
5+
refs/heads/try: 3df183e7abd3c4d24b6b989474fd5d855bbf9c11
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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ impl <T: Ord> TreeSet<T> {
346346
if !f(a1) { return }
347347
a = x.next();
348348
}
349+
return
349350
}
350351

351352
let (a1, _) = a.unwrap();
@@ -963,6 +964,7 @@ mod test_set {
963964
assert a.insert(11);
964965
assert a.insert(16);
965966
assert a.insert(19);
967+
assert a.insert(24);
966968

967969
assert b.insert(-2);
968970
assert b.insert(1);
@@ -972,7 +974,7 @@ mod test_set {
972974
assert b.insert(19);
973975

974976
let mut i = 0;
975-
let expected = [-2, 1, 3, 5, 9, 11, 13, 16, 19];
977+
let expected = [-2, 1, 3, 5, 9, 11, 13, 16, 19, 24];
976978
for a.union(&b) |x| {
977979
assert *x == expected[i];
978980
i += 1

0 commit comments

Comments
 (0)