Skip to content

Commit 8b09abf

Browse files
committed
---
yaml --- r: 51300 b: refs/heads/incoming c: 9b1a9ec h: refs/heads/master v: v3
1 parent dda1a18 commit 8b09abf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-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: 8eb2bab100b42f0ba751552d8eff00eb2134c55a
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/incoming: 2889a8a4e5a490cf650d3730bc05a1694a1d3310
9+
refs/heads/incoming: 9b1a9ec4ea87d3ff25ecf361c78c6119590d62a9
1010
refs/heads/dist-snap: 8b98e5a296d95c5e832db0756828e5bec31c6f50
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/libstd/treemap.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,9 @@ impl<T: TotalOrd> Set<T> for TreeSet<T> {
486486
a = set_next(&mut x);
487487
}
488488
}
489+
do b.while_some |b1| {
490+
if f(b1) { set_next(&mut y) } else { None }
491+
}
489492
}
490493
}
491494
}
@@ -1182,6 +1185,7 @@ mod test_set {
11821185

11831186
check_union([], [], []);
11841187
check_union([1, 2, 3], [2], [1, 2, 3]);
1188+
check_union([2], [1, 2, 3], [1, 2, 3]);
11851189
check_union([1, 3, 5, 9, 11, 16, 19, 24],
11861190
[-2, 1, 5, 9, 13, 19],
11871191
[-2, 1, 3, 5, 9, 11, 13, 16, 19, 24]);

0 commit comments

Comments
 (0)