Skip to content

Commit 8fafdf2

Browse files
committed
rust: alloc: remove a couple #[doc(alias = ...)]
Signed-off-by: Miguel Ojeda <[email protected]>
1 parent c4b483a commit 8fafdf2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

rust/alloc/vec/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,6 @@ impl<T> Vec<T> {
508508
/// assert!(result.is_err());
509509
/// ```
510510
#[inline]
511-
#[doc(alias = "malloc")]
512511
#[stable(feature = "kernel", since = "1.0.0")]
513512
pub fn try_with_capacity(capacity: usize) -> Result<Self, TryReserveError> {
514513
Self::try_with_capacity_in(capacity, Global)
@@ -1049,7 +1048,6 @@ impl<T, A: Allocator> Vec<T, A> {
10491048
/// vec.try_shrink_to_fit().unwrap();
10501049
/// assert!(vec.capacity() >= 3);
10511050
/// ```
1052-
#[doc(alias = "realloc")]
10531051
#[stable(feature = "kernel", since = "1.0.0")]
10541052
pub fn try_shrink_to_fit(&mut self) -> Result<(), TryReserveError> {
10551053
// The capacity is never less than the length, and there's nothing to do when

0 commit comments

Comments
 (0)