mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
drop_in_place: weaken the claim of equivalence with drop(ptr.read())
This commit is contained in:
parent
a83f933a9d
commit
5c497cb3f0
@ -450,7 +450,7 @@ mod mut_ptr;
|
||||
|
||||
/// Executes the destructor (if any) of the pointed-to value.
|
||||
///
|
||||
/// This is semantically equivalent to calling [`ptr::read`] and discarding
|
||||
/// This is almost the same as calling [`ptr::read`] and discarding
|
||||
/// the result, but has the following advantages:
|
||||
///
|
||||
/// * It is *required* to use `drop_in_place` to drop unsized types like
|
||||
|
Loading…
Reference in New Issue
Block a user