Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Tracking Issue for BinaryHeap::from_raw_vec #152500

Open

Description

@Dan54

Feature gate: #![feature(binary_heap_from_raw_vec)]

This is a tracking issue for the BinaryHeap::from_raw_vec function. This function constructs a BinaryHeap from a Vec without performing a heapify.

Public API

impl <T, A: Allocator> BinaryHeap<T, A> {
    pub unsafe fn from_raw_vec(vec: Vec<T, A>) -> BinaryHeap<T, A>
}

Steps / History

(Remember to update the S-tracking-* label when checking boxes.)

Unresolved Questions

  • None yet.

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩

Activity

  1. added
    T-libs-api
    C-tracking-issue
    S-tracking-unimplemented
    on Feb 11, 2026
  2. scottmcm commented on Feb 12, 2026

    @scottmcm
    Member

    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.)

  3. added a commit that references this issue on Feb 12, 2026
  4. added a commit that references this issue on Feb 12, 2026
  5. added a commit that references this issue on Feb 12, 2026
  6. added
    T-libs
    and removed
    T-libs-api
    on Aug 12, 2026
  7. bardiharborow commented on Nov 22, 2026

    @bardiharborow
    Contributor

    @rustbot label +A-binaryheap +S-tracking-needs-to-bake -S-tracking-unimplemented

  8. added
    A-binaryheap
    S-tracking-needs-to-bake
    and removed
    S-tracking-unimplemented
    on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-binaryheapC-tracking-issueS-tracking-needs-to-bakeT-libs

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions