We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent caef832 commit 656a17bCopy full SHA for 656a17b
library/core/src/mem/maybe_uninit.rs
@@ -589,7 +589,7 @@ impl<T> MaybeUninit<T> {
589
///
590
/// [`assume_init`]: MaybeUninit::assume_init
591
#[unstable(feature = "maybe_uninit_extra", issue = "63567")]
592
- pub unsafe fn drop(&mut self) {
+ pub unsafe fn assume_init_drop(&mut self) {
593
// SAFETY: the caller must guarantee that `self` is initialized.
594
// Dropping the value in place is safe if that is the case.
595
unsafe { ptr::drop_in_place(self.as_mut_ptr()) }
0 commit comments