mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
b3657f92d1
Rebuild BinaryHeap on unwind from retain This closes the hole identified in https://github.com/rust-lang/rust/issues/71503#issuecomment-1383251315 which had made it possible for the caller to end up with a heap in invalid state. As of #105851, heaps in invalid state are not supposed to exist.