]> git.lizzy.rs Git - rust.git/commitdiff
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)
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).

1  2 
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

Simple merge