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 63677c1 commit caa17fcCopy full SHA for caa17fc
src/destructors.md
@@ -426,8 +426,9 @@ let x = (&temp()).use_temp(); // ERROR
426
r[destructors.forget]
427
## Not running destructors
428
429
-### `forget`
+### Manually preventing destructors
430
431
+r[destructors.manually-preventing]
432
[`std::mem::forget`] can be used to prevent the destructor of a variable from being run,
433
and [`std::mem::ManuallyDrop`] provides a wrapper to prevent a
434
variable or field from being dropped automatically.
0 commit comments