8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80f8aeb commit 1632f8fCopy full SHA for 1632f8f
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