Rollup merge of #124012 - slanterns:as_slice_stabilize, r=BurntSushi · model-checking/verify-rust-std@8a4b11a (original) (raw)
File tree
2 files changed
lines changed
- src/collections/binary_heap
2 files changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1216,7 +1216,6 @@ impl<T, A: Allocator> BinaryHeap<T, A> { | ||
1216 | 1216 | /// Basic usage: |
1217 | 1217 | /// |
1218 | 1218 | /// ``` |
1219 | - /// #![feature(binary_heap_as_slice)] | |
1220 | 1219 | /// use std::collections::BinaryHeap; |
1221 | 1220 | /// use std::io::{self, Write}; |
1222 | 1221 | /// |
@@ -1225,7 +1224,7 @@ impl<T, A: Allocator> BinaryHeap<T, A> { | ||
1225 | 1224 | /// io::sink().write(heap.as_slice()).unwrap(); |
1226 | 1225 | /// ``` |
1227 | 1226 | #[must_use] |
1228 | -#[unstable(feature = "binary_heap_as_slice", issue = "83659")] | |
1227 | +#[stable(feature = "binary_heap_as_slice", since = "CURRENT_RUSTC_VERSION")] | |
1229 | 1228 | pub fn as_slice(&self) -> &[T] { |
1230 | 1229 | self.data.as_slice() |
1231 | 1230 | } |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -24,7 +24,6 @@ | ||
24 | 24 | #![feature(binary_heap_into_iter_sorted)] |
25 | 25 | #![feature(binary_heap_drain_sorted)] |
26 | 26 | #![feature(slice_ptr_get)] |
27 | -#![feature(binary_heap_as_slice)] | |
28 | 27 | #![feature(inplace_iteration)] |
29 | 28 | #![feature(iter_advance_by)] |
30 | 29 | #![feature(iter_next_chunk)] |