From bf64376f91724fffac3dbc26822cf533b11d4e6b Mon Sep 17 00:00:00 2001 From: bluss Date: Wed, 9 Oct 2019 09:39:49 +0200 Subject: [PATCH] API: Deprecate .dispose(), it no longer has a purpose without nodrop --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index e7e8151..0086307 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -628,7 +628,8 @@ impl ArrayVec { } } - /// Dispose of `self` without the overwriting that is needed in Drop. + /// Dispose of `self` (same as drop) + #[deprecated="Use std::mem::drop instead, if at all needed."] pub fn dispose(mut self) { self.clear(); mem::forget(self);