diff options
| author | Pietro Albini <pietro.albini@ferrous-systems.com> | 2024-06-10 14:50:54 +0200 |
|---|---|---|
| committer | Pietro Albini <pietro.albini@ferrous-systems.com> | 2024-06-11 16:52:02 +0200 |
| commit | be9e27e490c9fb9fa4b3c962daa1fbd3acbc58ee (patch) | |
| tree | 672d600ec834e9b584e7d114610089e5b59cd2db /library/alloc/src/collections/binary_heap | |
| parent | 534b5855a6baf6da084c261593cdfb84cec01755 (diff) | |
| download | rust-be9e27e490c9fb9fa4b3c962daa1fbd3acbc58ee.tar.gz rust-be9e27e490c9fb9fa4b3c962daa1fbd3acbc58ee.zip | |
replace version placeholder
Diffstat (limited to 'library/alloc/src/collections/binary_heap')
| -rw-r--r-- | library/alloc/src/collections/binary_heap/mod.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/library/alloc/src/collections/binary_heap/mod.rs b/library/alloc/src/collections/binary_heap/mod.rs index a391141827e..af01db19139 100644 --- a/library/alloc/src/collections/binary_heap/mod.rs +++ b/library/alloc/src/collections/binary_heap/mod.rs @@ -440,10 +440,7 @@ impl<T: Ord> BinaryHeap<T> { /// heap.push(4); /// ``` #[stable(feature = "rust1", since = "1.0.0")] - #[rustc_const_stable( - feature = "const_binary_heap_constructor", - since = "CURRENT_RUSTC_VERSION" - )] + #[rustc_const_stable(feature = "const_binary_heap_constructor", since = "1.80.0")] #[must_use] pub const fn new() -> BinaryHeap<T> { BinaryHeap { data: vec![] } @@ -1224,7 +1221,7 @@ impl<T, A: Allocator> BinaryHeap<T, A> { /// io::sink().write(heap.as_slice()).unwrap(); /// ``` #[must_use] - #[stable(feature = "binary_heap_as_slice", since = "CURRENT_RUSTC_VERSION")] + #[stable(feature = "binary_heap_as_slice", since = "1.80.0")] pub fn as_slice(&self) -> &[T] { self.data.as_slice() } |
