Fix outdated comment
Comment referenced NoDrop which is no longer used.
This commit is contained in:
+1
-3
@@ -81,9 +81,7 @@ impl<A: Array> Drop for ArrayVec<A> {
|
|||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
self.clear();
|
self.clear();
|
||||||
|
|
||||||
// NoDrop inhibits array's drop
|
// MaybeUninit inhibits array's drop
|
||||||
// panic safety: NoDrop::drop will trigger on panic, so the inner
|
|
||||||
// array will not drop even after panic.
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user