Add comment to Dropper

This commit is contained in:
Jonas Schievink
2019-12-12 00:39:29 +01:00
parent 189ccf20a2
commit 82c09b75d7
+2
View File
@@ -144,6 +144,8 @@ fn clone_from(&mut self, other: &Self) {
#[stable(feature = "rust1", since = "1.0.0")]
unsafe impl<#[may_dangle] T> Drop for VecDeque<T> {
fn drop(&mut self) {
/// Runs the destructor for all items in the slice when it gets dropped (normally or
/// during unwinding).
struct Dropper<'a, T>(&'a mut [T]);
impl<'a, T> Drop for Dropper<'a, T> {