Skip to content

Commit 82c09b7

Browse files
Add comment to Dropper
1 parent 189ccf2 commit 82c09b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/liballoc/collections/vec_deque.rs

+2
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ impl<T: Clone> Clone for VecDeque<T> {
144144
#[stable(feature = "rust1", since = "1.0.0")]
145145
unsafe impl<#[may_dangle] T> Drop for VecDeque<T> {
146146
fn drop(&mut self) {
147+
/// Runs the destructor for all items in the slice when it gets dropped (normally or
148+
/// during unwinding).
147149
struct Dropper<'a, T>(&'a mut [T]);
148150

149151
impl<'a, T> Drop for Dropper<'a, T> {

0 commit comments

Comments
 (0)