]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #94145 - ssomers:binary_heap_tests, r=jyn514
authorfee1-dead <ent3rm4n@gmail.com>
Wed, 28 Dec 2022 07:51:37 +0000 (15:51 +0800)
committerGitHub <noreply@github.com>
Wed, 28 Dec 2022 07:51:37 +0000 (15:51 +0800)
commitdc98aa681fde7976cf3644429b6ab83548a515ed
treebb00c3d6ef49bd0e1669aa2bb674a60d399523fc
parent6a4624d73b34153811f7642b89bd396306aa7843
parenta80e685e11a6876d3ec1e54f4e5fafd92c6c4eb2
Rollup merge of #94145 - ssomers:binary_heap_tests, r=jyn514

Test leaking of BinaryHeap Drain iterators

Add test cases about forgetting the `BinaryHeap::Drain` iterator, and slightly fortifies some other test cases.

Consists of separate commits that I don't think are relevant on their own (but I'll happily turn these into more PRs if desired).
library/alloc/src/collections/binary_heap/tests.rs
library/alloc/src/collections/btree/map/tests.rs
library/alloc/src/collections/btree/mod.rs
library/alloc/src/collections/btree/set/tests.rs
library/alloc/src/collections/linked_list/tests.rs
library/alloc/src/lib.rs