Skip to content

Commit 2235af1

Browse files
committed
update feature gate
1 parent d0f8793 commit 2235af1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/alloc/src/collections/binary_heap.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ impl<T> BinaryHeap<T> {
974974
/// # Examples
975975
///
976976
/// ```
977-
/// #![feature(try_reserve_binary_heap)]
977+
/// #![feature(try_reserve_2)]
978978
/// use std::collections::BinaryHeap;
979979
/// use std::collections::TryReserveError;
980980
///
@@ -991,7 +991,7 @@ impl<T> BinaryHeap<T> {
991991
/// }
992992
/// # find_max_slow(&[1, 2, 3]).expect("why is the test harness OOMing on 12 bytes?");
993993
/// ```
994-
#[unstable(feature = "try_reserve_binary_heap", issue = "none")]
994+
#[unstable(feature = "try_reserve_2", issue = "91789")]
995995
pub fn try_reserve_exact(&mut self, additional: usize) -> Result<(), TryReserveError> {
996996
self.data.try_reserve_exact(additional)
997997
}
@@ -1010,7 +1010,7 @@ impl<T> BinaryHeap<T> {
10101010
/// # Examples
10111011
///
10121012
/// ```
1013-
/// #![feature(try_reserve_binary_heap)]
1013+
/// #![feature(try_reserve_2)]
10141014
/// use std::collections::BinaryHeap;
10151015
/// use std::collections::TryReserveError;
10161016
///
@@ -1027,7 +1027,7 @@ impl<T> BinaryHeap<T> {
10271027
/// }
10281028
/// # find_max_slow(&[1, 2, 3]).expect("why is the test harness OOMing on 12 bytes?");
10291029
/// ```
1030-
#[unstable(feature = "try_reserve_binary_heap", issue = "none")]
1030+
#[unstable(feature = "try_reserve_2", issue = "91789")]
10311031
pub fn try_reserve(&mut self, additional: usize) -> Result<(), TryReserveError> {
10321032
self.data.try_reserve(additional)
10331033
}

0 commit comments

Comments
 (0)