You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tracking Issue for BinaryHeap::from_raw_vec #152500
A-binaryheapArea: `std::collections::BinaryHeap`C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-needs-to-bakeStatus: The implementation is "complete" but it needs time to bake.T-libsRelevant to the library team, which will review and decide on the PR/issue.
For postarity: the unsafe is because that way other code can depend on BinaryHeap<u32> being correct, for example.
(For untrusted generic types one can never fully trust them, since Ord might be incorrect, but for trusted types one wants to still be able to trust BinaryHeap.)
A-binaryheapArea: `std::collections::BinaryHeap`C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-needs-to-bakeStatus: The implementation is "complete" but it needs time to bake.T-libsRelevant to the library team, which will review and decide on the PR/issue.
Activity
scottmcm commentedon Feb 12, 2026
For postarity: the
unsafeis because that way other code can depend onBinaryHeap<u32>being correct, for example.(For untrusted generic types one can never fully trust them, since
Ordmight be incorrect, but for trusted types one wants to still be able to trustBinaryHeap.)Rollup merge of rust-lang#152502 - Dan54:heap-from-raw-vec, r=scottmcm
Rollup merge of rust-lang#152502 - Dan54:heap-from-raw-vec, r=scottmcm
Unrolled build for #152502
bardiharborow commentedon Nov 22, 2026
@rustbot label +A-binaryheap +S-tracking-needs-to-bake -S-tracking-unimplemented