@@ -849,7 +849,6 @@ impl<T, A: Allocator> Vec<T, A> {
849
849
/// # Examples
850
850
///
851
851
/// ```
852
- /// #![feature(try_reserve)]
853
852
/// use std::collections::TryReserveError;
854
853
///
855
854
/// fn process_data(data: &[u32]) -> Result<Vec<u32>, TryReserveError> {
@@ -867,7 +866,7 @@ impl<T, A: Allocator> Vec<T, A> {
867
866
/// }
868
867
/// # process_data(&[1, 2, 3]).expect("why is the test harness OOMing on 12 bytes?");
869
868
/// ```
870
- #[ unstable ( feature = "try_reserve" , reason = "new API" , issue = "48043 ") ]
869
+ #[ stable ( feature = "try_reserve" , since = "1.57.0 " ) ]
871
870
pub fn try_reserve ( & mut self , additional : usize ) -> Result < ( ) , TryReserveError > {
872
871
self . buf . try_reserve ( self . len , additional)
873
872
}
@@ -892,7 +891,6 @@ impl<T, A: Allocator> Vec<T, A> {
892
891
/// # Examples
893
892
///
894
893
/// ```
895
- /// #![feature(try_reserve)]
896
894
/// use std::collections::TryReserveError;
897
895
///
898
896
/// fn process_data(data: &[u32]) -> Result<Vec<u32>, TryReserveError> {
@@ -910,7 +908,7 @@ impl<T, A: Allocator> Vec<T, A> {
910
908
/// }
911
909
/// # process_data(&[1, 2, 3]).expect("why is the test harness OOMing on 12 bytes?");
912
910
/// ```
913
- #[ unstable ( feature = "try_reserve" , reason = "new API" , issue = "48043 ") ]
911
+ #[ stable ( feature = "try_reserve" , since = "1.57.0 " ) ]
914
912
pub fn try_reserve_exact ( & mut self , additional : usize ) -> Result < ( ) , TryReserveError > {
915
913
self . buf . try_reserve_exact ( self . len , additional)
916
914
}
0 commit comments