We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Dropper
1 parent 189ccf2 commit 82c09b7Copy full SHA for 82c09b7
src/liballoc/collections/vec_deque.rs
@@ -144,6 +144,8 @@ impl<T: Clone> Clone for VecDeque<T> {
144
#[stable(feature = "rust1", since = "1.0.0")]
145
unsafe impl<#[may_dangle] T> Drop for VecDeque<T> {
146
fn drop(&mut self) {
147
+ /// Runs the destructor for all items in the slice when it gets dropped (normally or
148
+ /// during unwinding).
149
struct Dropper<'a, T>(&'a mut [T]);
150
151
impl<'a, T> Drop for Dropper<'a, T> {
0 commit comments