From 1876c7e54f82b970b65a7e41e41b68873fec6ea1 Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Wed, 7 Apr 2021 09:46:13 -0400 Subject: [PATCH] Add `free` as a doc alias for `drop` --- library/core/src/mem/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/mem/mod.rs b/library/core/src/mem/mod.rs index 446d72f1d32e4..746b077c920a1 100644 --- a/library/core/src/mem/mod.rs +++ b/library/core/src/mem/mod.rs @@ -886,7 +886,7 @@ pub const fn replace(dest: &mut T, src: T) -> T { /// ``` /// /// [`RefCell`]: crate::cell::RefCell -#[doc(alias = "delete")] +#[doc(alias("delete", "free"))] #[inline] #[stable(feature = "rust1", since = "1.0.0")] pub fn drop(_x: T) {}