rust/src/liballoc/tests
Mazdak Farrokhzad a6b5c80dbc
Rollup merge of #65226 - ssomers:master, r=bluss
BTreeSet symmetric_difference & union optimized

No scalability changes, but:
- Grew the cmp_opt function (shared by symmetric_difference & union) into a MergeIter, with less memory overhead than the pairs of Peekable iterators now, speeding up ~20% on my machine (not so clear on Travis though, I actually switched it off there because it wasn't consistent about identical code). Mainly meant to improve readability by sharing code, though it does end up using more lines of code. Extending and reusing the MergeIter in btree_map might be better, but I'm not sure that's possible or desirable. This MergeIter probably pretends to be more generic than it is, yet doesn't declare to be an iterator because there's no need to, it's only there to help construct genuine iterators SymmetricDifference & Union.
- Compact the code of #64820 by moving if/else into match guards.

r? @bluss
2019-10-19 16:00:53 +02:00
..
btree BTreeSet symmetric_difference & union optimized, cleaned 2019-10-18 00:11:32 +02:00
arc.rs shared_from_iter: Polish internal docs. 2019-06-21 23:01:48 +02:00
binary_heap.rs Upgrade Emscripten targets to use upstream LLVM backend 2019-10-16 17:06:48 -07:00
boxed.rs Uninitialized boxes: add test for zero-size allocations 2019-10-18 23:57:22 +02:00
cow_str.rs Deny rust_2018_idioms in liballoc tests 2019-04-20 16:05:25 +02:00
fmt.rs Remove licenses 2018-12-25 21:08:33 -07:00
heap.rs test more possible overaligned requests 2019-07-02 13:07:51 +02:00
lib.rs Rollup merge of #65174 - SimonSapin:zero-box, r=alexcrichton 2019-10-19 07:10:03 +02:00
linked_list.rs Remove some more cfg(test)s 2019-08-02 02:40:01 +03:00
rc.rs shared_from_iter: Add more tests. 2019-06-21 03:52:38 +02:00
slice.rs test sort_unstable in Miri 2019-04-17 09:47:36 +02:00
str.rs Upgrade Emscripten targets to use upstream LLVM backend 2019-10-16 17:06:48 -07:00
string.rs Add the Layout of the failed allocation to TryReserveError::AllocError 2019-08-16 18:08:37 +02:00
vec.rs Upgrade Emscripten targets to use upstream LLVM backend 2019-10-16 17:06:48 -07:00
vec_deque.rs Add the Layout of the failed allocation to TryReserveError::AllocError 2019-08-16 18:08:37 +02:00