Skip to content

Commit

Permalink
Auto merge of #30696 - steveklabnik:gh30655, r=brson
Browse files Browse the repository at this point in the history
Fixes #30655
  • Loading branch information
bors committed Jan 19, 2016
2 parents 84157db + 3385fba commit f8c2d57
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/libcore/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,16 @@ use fmt;
#[stable(feature = "rust1", since = "1.0.0")]
pub trait Drop {
/// A method called when the value goes out of scope.
///
/// When this method has been called, `self` has not yet been deallocated.
/// If it were, `self` would be a dangling reference.
///
/// After this function is over, the memory of `self` will be deallocated.
///
/// # Panics
///
/// Given that a `panic!` will call `drop()` as it unwinds, any `panic!` in
/// a `drop()` implementation will likely abort.
#[stable(feature = "rust1", since = "1.0.0")]
fn drop(&mut self);
}
Expand Down

0 comments on commit f8c2d57

Please sign in to comment.