diff --git a/core/src/future/async_drop.rs b/core/src/future/async_drop.rs index ea7e2f52ba1db..25138c445c437 100644 --- a/core/src/future/async_drop.rs +++ b/core/src/future/async_drop.rs @@ -259,6 +259,8 @@ async unsafe fn either, M: IntoFuture, T #[cfg(not(bootstrap))] #[lang = "async_drop_deferred_drop_in_place"] async unsafe fn deferred_drop_in_place(to_drop: *mut T) { + // SAFETY: same safety requirements as with drop_in_place (implied by + // function's name) unsafe { crate::ptr::drop_in_place(to_drop) } }