@@ -459,7 +459,6 @@ impl<T> Vec<T> {
459
459
/// ```
460
460
#[ cfg( not( no_global_oom_handling) ) ]
461
461
#[ inline]
462
- #[ doc( alias = "malloc" ) ]
463
462
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
464
463
pub fn with_capacity ( capacity : usize ) -> Self {
465
464
Self :: with_capacity_in ( capacity, Global )
@@ -799,7 +798,6 @@ impl<T, A: Allocator> Vec<T, A> {
799
798
/// assert!(vec.capacity() >= 11);
800
799
/// ```
801
800
#[ cfg( not( no_global_oom_handling) ) ]
802
- #[ doc( alias = "realloc" ) ]
803
801
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
804
802
pub fn reserve ( & mut self , additional : usize ) {
805
803
self . buf . reserve ( self . len , additional) ;
@@ -826,7 +824,6 @@ impl<T, A: Allocator> Vec<T, A> {
826
824
/// assert!(vec.capacity() >= 11);
827
825
/// ```
828
826
#[ cfg( not( no_global_oom_handling) ) ]
829
- #[ doc( alias = "realloc" ) ]
830
827
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
831
828
pub fn reserve_exact ( & mut self , additional : usize ) {
832
829
self . buf . reserve_exact ( self . len , additional) ;
@@ -864,7 +861,6 @@ impl<T, A: Allocator> Vec<T, A> {
864
861
/// }
865
862
/// # process_data(&[1, 2, 3]).expect("why is the test harness OOMing on 12 bytes?");
866
863
/// ```
867
- #[ doc( alias = "realloc" ) ]
868
864
#[ unstable( feature = "try_reserve" , reason = "new API" , issue = "48043" ) ]
869
865
pub fn try_reserve ( & mut self , additional : usize ) -> Result < ( ) , TryReserveError > {
870
866
self . buf . try_reserve ( self . len , additional)
@@ -906,7 +902,6 @@ impl<T, A: Allocator> Vec<T, A> {
906
902
/// }
907
903
/// # process_data(&[1, 2, 3]).expect("why is the test harness OOMing on 12 bytes?");
908
904
/// ```
909
- #[ doc( alias = "realloc" ) ]
910
905
#[ unstable( feature = "try_reserve" , reason = "new API" , issue = "48043" ) ]
911
906
pub fn try_reserve_exact ( & mut self , additional : usize ) -> Result < ( ) , TryReserveError > {
912
907
self . buf . try_reserve_exact ( self . len , additional)
@@ -927,7 +922,6 @@ impl<T, A: Allocator> Vec<T, A> {
927
922
/// assert!(vec.capacity() >= 3);
928
923
/// ```
929
924
#[ cfg( not( no_global_oom_handling) ) ]
930
- #[ doc( alias = "realloc" ) ]
931
925
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
932
926
pub fn shrink_to_fit ( & mut self ) {
933
927
// The capacity is never less than the length, and there's nothing to do when
@@ -958,7 +952,6 @@ impl<T, A: Allocator> Vec<T, A> {
958
952
/// assert!(vec.capacity() >= 3);
959
953
/// ```
960
954
#[ cfg( not( no_global_oom_handling) ) ]
961
- #[ doc( alias = "realloc" ) ]
962
955
#[ unstable( feature = "shrink_to" , reason = "new API" , issue = "56431" ) ]
963
956
pub fn shrink_to ( & mut self , min_capacity : usize ) {
964
957
if self . capacity ( ) > min_capacity {
0 commit comments