API: Deprecate .dispose(), it no longer has a purpose without nodrop

This commit is contained in:
bluss
2019-10-09 09:39:49 +02:00
parent 2a376d966d
commit bf64376f91
+2 -1
View File
@@ -628,7 +628,8 @@ impl<A: Array> ArrayVec<A> {
}
}
/// 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);