Skip to content

Commit 656a17b

Browse files
committed
Rename MaybeUninit::drop to assume_init_drop.
1 parent caef832 commit 656a17b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/mem/maybe_uninit.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ impl<T> MaybeUninit<T> {
589589
///
590590
/// [`assume_init`]: MaybeUninit::assume_init
591591
#[unstable(feature = "maybe_uninit_extra", issue = "63567")]
592-
pub unsafe fn drop(&mut self) {
592+
pub unsafe fn assume_init_drop(&mut self) {
593593
// SAFETY: the caller must guarantee that `self` is initialized.
594594
// Dropping the value in place is safe if that is the case.
595595
unsafe { ptr::drop_in_place(self.as_mut_ptr()) }

0 commit comments

Comments
 (0)