stablize const_binary_heap_constructor
& create an unstable feature… · model-checking/verify-rust-std@7f0b19d (original) (raw)
File tree
1 file changed
lines changed
- alloc/src/collections/binary_heap
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -440,7 +440,10 @@ impl<T: Ord> BinaryHeap { | ||
440 | 440 | /// heap.push(4); |
441 | 441 | /// ``` |
442 | 442 | #[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 | + )] | |
444 | 447 | #[must_use] |
445 | 448 | pub const fn new() -> BinaryHeap<T> { |
446 | 449 | BinaryHeap { data: vec![] } |
@@ -484,7 +487,7 @@ impl<T: Ord, A: Allocator> BinaryHeap<T, A> { | ||
484 | 487 | /// heap.push(4); |
485 | 488 | /// ``` |
486 | 489 | #[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")] | |
488 | 491 | #[must_use] |
489 | 492 | pub const fn new_in(alloc: A) -> BinaryHeap<T, A> { |
490 | 493 | BinaryHeap { data: Vec::new_in(alloc) } |