Skip to content

Commit 3ced8c5

Browse files
committed
---
yaml --- r: 49858 b: refs/heads/auto c: 9b1a9ec h: refs/heads/master v: v3
1 parent 8ffc623 commit 3ced8c5

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
@@ -14,5 +14,5 @@ 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: 2889a8a4e5a490cf650d3730bc05a1694a1d3310
17+
refs/heads/auto: 9b1a9ec4ea87d3ff25ecf361c78c6119590d62a9
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167

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