We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f604ed6 commit de2eba1Copy full SHA for de2eba1
library/core/src/mem/manually_drop.rs
@@ -41,8 +41,9 @@ use crate::ptr;
41
///
42
/// # Interaction with `Box`
43
44
-/// Currently, once the `Box<T>` inside a `ManuallyDrop<Box<T>>` is dropped,
45
-/// moving the `ManuallyDrop<Box<T>>` is [considered to be undefined
+/// Currently, if you have a `ManuallyDrop<T>`, where the type `T` is a `Box` or
+/// contains a `Box` inside, then dropping the `T` followed by moving the
46
+/// `ManuallyDrop<T>` is [considered to be undefined
47
/// behavior](https://github.com/rust-lang/unsafe-code-guidelines/issues/245).
48
/// That is, the following code causes undefined behavior:
49
0 commit comments