@@ -459,7 +459,6 @@ impl<T> Vec<T> {
459459 /// ```
460460 #[ cfg( not( no_global_oom_handling) ) ]
461461 #[ inline]
462- #[ doc( alias = "malloc" ) ]
463462 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
464463 pub fn with_capacity ( capacity : usize ) -> Self {
465464 Self :: with_capacity_in ( capacity, Global )
@@ -799,7 +798,6 @@ impl<T, A: Allocator> Vec<T, A> {
799798 /// assert!(vec.capacity() >= 11);
800799 /// ```
801800 #[ cfg( not( no_global_oom_handling) ) ]
802- #[ doc( alias = "realloc" ) ]
803801 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
804802 pub fn reserve ( & mut self , additional : usize ) {
805803 self . buf . reserve ( self . len , additional) ;
@@ -826,7 +824,6 @@ impl<T, A: Allocator> Vec<T, A> {
826824 /// assert!(vec.capacity() >= 11);
827825 /// ```
828826 #[ cfg( not( no_global_oom_handling) ) ]
829- #[ doc( alias = "realloc" ) ]
830827 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
831828 pub fn reserve_exact ( & mut self , additional : usize ) {
832829 self . buf . reserve_exact ( self . len , additional) ;
@@ -864,7 +861,6 @@ impl<T, A: Allocator> Vec<T, A> {
864861 /// }
865862 /// # process_data(&[1, 2, 3]).expect("why is the test harness OOMing on 12 bytes?");
866863 /// ```
867- #[ doc( alias = "realloc" ) ]
868864 #[ unstable( feature = "try_reserve" , reason = "new API" , issue = "48043" ) ]
869865 pub fn try_reserve ( & mut self , additional : usize ) -> Result < ( ) , TryReserveError > {
870866 self . buf . try_reserve ( self . len , additional)
@@ -906,7 +902,6 @@ impl<T, A: Allocator> Vec<T, A> {
906902 /// }
907903 /// # process_data(&[1, 2, 3]).expect("why is the test harness OOMing on 12 bytes?");
908904 /// ```
909- #[ doc( alias = "realloc" ) ]
910905 #[ unstable( feature = "try_reserve" , reason = "new API" , issue = "48043" ) ]
911906 pub fn try_reserve_exact ( & mut self , additional : usize ) -> Result < ( ) , TryReserveError > {
912907 self . buf . try_reserve_exact ( self . len , additional)
@@ -927,7 +922,6 @@ impl<T, A: Allocator> Vec<T, A> {
927922 /// assert!(vec.capacity() >= 3);
928923 /// ```
929924 #[ cfg( not( no_global_oom_handling) ) ]
930- #[ doc( alias = "realloc" ) ]
931925 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
932926 pub fn shrink_to_fit ( & mut self ) {
933927 // 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> {
958952 /// assert!(vec.capacity() >= 3);
959953 /// ```
960954 #[ cfg( not( no_global_oom_handling) ) ]
961- #[ doc( alias = "realloc" ) ]
962955 #[ unstable( feature = "shrink_to" , reason = "new API" , issue = "56431" ) ]
963956 pub fn shrink_to ( & mut self , min_capacity : usize ) {
964957 if self . capacity ( ) > min_capacity {
@@ -1820,7 +1813,6 @@ impl<T, A: Allocator> Vec<T, A> {
18201813 /// let a = vec![1, 2, 3];
18211814 /// assert_eq!(a.len(), 3);
18221815 /// ```
1823- #[ doc( alias = "length" ) ]
18241816 #[ inline]
18251817 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
18261818 pub fn len ( & self ) -> usize {
0 commit comments