]> git.lizzy.rs Git - rust.git/commit
Add MaybeUninit::drop.
authorMara Bos <m-ou.se@m-ou.se>
Tue, 8 Sep 2020 17:01:05 +0000 (19:01 +0200)
committerMara Bos <m-ou.se@m-ou.se>
Tue, 8 Sep 2020 17:01:05 +0000 (19:01 +0200)
commit75e471ade9ea6095eef6cd4ef35cfc0b8bfc9410
tree4eb3a350829ec425c51d7fa45201f1e863c2fb76
parent7bc0bf72545f5d6ac6d9639391da875d5e147d9a
Add MaybeUninit::drop.

ManuallyDrop's documentation tells the user to use MaybeUninit instead
when handling uninitialized data. However, the main functionality of
ManuallyDrop (drop) was not available directly on MaybeUninit. Adding it
makes it easier to switch from one to the other.
library/core/src/mem/maybe_uninit.rs