Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdbd03d4

Browse files
committed
StabilizeBinaryHeap::as_slice
1 parent03f665c commitdbd03d4

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

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

Lines changed: 1 addition & 2 deletions
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
pubfnas_slice(&self) ->&[T]{
12211220
self.data.as_slice()
12221221
}

‎alloc/tests/lib.rs‎

Lines changed: 0 additions & 1 deletion
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)

[8]ページ先頭

©2009-2025 Movatter.jp