Stabilize BinaryHeap::as_slice · model-checking/verify-rust-std@dbd03d4 (original) (raw)

File tree

2 files changed

lines changed

2 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -1207,7 +1207,6 @@ impl<T, A: Allocator> BinaryHeap<T, A> {
1207 1207 /// Basic usage:
1208 1208 ///
1209 1209 /// ```
1210 - /// #![feature(binary_heap_as_slice)]
1211 1210 /// use std::collections::BinaryHeap;
1212 1211 /// use std::io::{self, Write};
1213 1212 ///
@@ -1216,7 +1215,7 @@ impl<T, A: Allocator> BinaryHeap<T, A> {
1216 1215 /// io::sink().write(heap.as_slice()).unwrap();
1217 1216 /// ```
1218 1217 #[must_use]
1219 -#[unstable(feature = "binary_heap_as_slice", issue = "83659")]
1218 +#[stable(feature = "binary_heap_as_slice", since = "CURRENT_RUSTC_VERSION")]
1220 1219 pub fn as_slice(&self) -> &[T] {
1221 1220 self.data.as_slice()
1222 1221 }
Original file line number Diff line number Diff line change
@@ -26,7 +26,6 @@
26 26 #![feature(binary_heap_into_iter_sorted)]
27 27 #![feature(binary_heap_drain_sorted)]
28 28 #![feature(slice_ptr_get)]
29 -#![feature(binary_heap_as_slice)]
30 29 #![feature(inplace_iteration)]
31 30 #![feature(iter_advance_by)]
32 31 #![feature(iter_next_chunk)]