Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7f0b19d

Browse files
committed
stablizeconst_binary_heap_constructor & create an unstable featureconst_binary_heap_new_in forBinaryHeap::new_in
1 parent5c2e274 commit7f0b19d

File tree

1 file changed

+5
-2
lines changed
  • alloc/src/collections/binary_heap

1 file changed

+5
-2
lines changed

‎alloc/src/collections/binary_heap/mod.rs‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,10 @@ impl<T: Ord> BinaryHeap<T> {
440440
/// heap.push(4);
441441
/// ```
442442
#[stable(feature ="rust1", since ="1.0.0")]
443-
#[rustc_const_unstable(feature ="const_binary_heap_constructor", issue ="112353")]
443+
#[rustc_const_stable(
444+
feature ="const_binary_heap_constructor",
445+
since ="CURRENT_RUSTC_VERSION"
446+
)]
444447
#[must_use]
445448
pubconstfnnew() ->BinaryHeap<T>{
446449
BinaryHeap{data:vec![]}
@@ -484,7 +487,7 @@ impl<T: Ord, A: Allocator> BinaryHeap<T, A> {
484487
/// heap.push(4);
485488
/// ```
486489
#[unstable(feature ="allocator_api", issue ="32838")]
487-
#[rustc_const_unstable(feature ="const_binary_heap_constructor", issue ="112353")]
490+
#[rustc_const_unstable(feature ="const_binary_heap_new_in", issue ="112353")]
488491
#[must_use]
489492
pubconstfnnew_in(alloc:A) ->BinaryHeap<T,A>{
490493
BinaryHeap{data:Vec::new_in(alloc)}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp