mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Stabilize BinaryHeap::as_slice
This commit is contained in:
parent
ad18fe08de
commit
d5d56d00e7
@ -1207,7 +1207,6 @@ impl<T, A: Allocator> BinaryHeap<T, A> {
|
||||
/// Basic usage:
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(binary_heap_as_slice)]
|
||||
/// use std::collections::BinaryHeap;
|
||||
/// use std::io::{self, Write};
|
||||
///
|
||||
@ -1216,7 +1215,7 @@ impl<T, A: Allocator> BinaryHeap<T, A> {
|
||||
/// io::sink().write(heap.as_slice()).unwrap();
|
||||
/// ```
|
||||
#[must_use]
|
||||
#[unstable(feature = "binary_heap_as_slice", issue = "83659")]
|
||||
#[stable(feature = "binary_heap_as_slice", since = "CURRENT_RUSTC_VERSION")]
|
||||
pub fn as_slice(&self) -> &[T] {
|
||||
self.data.as_slice()
|
||||
}
|
||||
|
@ -26,7 +26,6 @@
|
||||
#![feature(binary_heap_into_iter_sorted)]
|
||||
#![feature(binary_heap_drain_sorted)]
|
||||
#![feature(slice_ptr_get)]
|
||||
#![feature(binary_heap_as_slice)]
|
||||
#![feature(inplace_iteration)]
|
||||
#![feature(iter_advance_by)]
|
||||
#![feature(iter_next_chunk)]
|
||||
|
Loading…
Reference in New Issue
Block a user