We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
const_binary_heap_constructor
const_binary_heap_new_in
BinaryHeap::new_in
1 parent5c2e274 commit7f0b19dCopy full SHA for 7f0b19d
alloc/src/collections/binary_heap/mod.rs
@@ -440,7 +440,10 @@ impl<T: Ord> BinaryHeap<T> {
440
/// heap.push(4);
441
/// ```
442
#[stable(feature ="rust1", since ="1.0.0")]
443
-#[rustc_const_unstable(feature ="const_binary_heap_constructor", issue ="112353")]
+#[rustc_const_stable(
444
+ feature ="const_binary_heap_constructor",
445
+ since ="CURRENT_RUSTC_VERSION"
446
+)]
447
#[must_use]
448
pubconstfnnew() ->BinaryHeap<T>{
449
BinaryHeap{data:vec![]}
@@ -484,7 +487,7 @@ impl<T: Ord, A: Allocator> BinaryHeap<T, A> {
484
487
485
488
486
489
#[unstable(feature ="allocator_api", issue ="32838")]
490
+#[rustc_const_unstable(feature ="const_binary_heap_new_in", issue ="112353")]
491
492
pubconstfnnew_in(alloc:A) ->BinaryHeap<T,A>{
493
BinaryHeap{data:Vec::new_in(alloc)}