API: Deprecate .dispose(), it no longer has a purpose without nodrop
This commit is contained in:
+2
-1
@@ -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) {
|
pub fn dispose(mut self) {
|
||||||
self.clear();
|
self.clear();
|
||||||
mem::forget(self);
|
mem::forget(self);
|
||||||
|
|||||||
Reference in New Issue
Block a user