mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 09:38:26 +03:00
Add comment to Dropper
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user