Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit dbd03d4

Browse files
committedApr 16, 2024
Stabilize BinaryHeap::as_slice
1 parent 03f665c commit dbd03d4

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed
 

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,6 @@ impl<T, A: Allocator> BinaryHeap<T, A> {
12071207
/// Basic usage:
12081208
///
12091209
/// ```
1210-
/// #![feature(binary_heap_as_slice)]
12111210
/// use std::collections::BinaryHeap;
12121211
/// use std::io::{self, Write};
12131212
///
@@ -1216,7 +1215,7 @@ impl<T, A: Allocator> BinaryHeap<T, A> {
12161215
/// io::sink().write(heap.as_slice()).unwrap();
12171216
/// ```
12181217
#[must_use]
1219-
#[unstable(feature = "binary_heap_as_slice", issue = "83659")]
1218+
#[stable(feature = "binary_heap_as_slice", since = "CURRENT_RUSTC_VERSION")]
12201219
pub fn as_slice(&self) -> &[T] {
12211220
self.data.as_slice()
12221221
}

‎alloc/tests/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#![feature(binary_heap_into_iter_sorted)]
2727
#![feature(binary_heap_drain_sorted)]
2828
#![feature(slice_ptr_get)]
29-
#![feature(binary_heap_as_slice)]
3029
#![feature(inplace_iteration)]
3130
#![feature(iter_advance_by)]
3231
#![feature(iter_next_chunk)]

0 commit comments

Comments
 (0)
Failed to load comments.