From bb6d4eb5be6c974b290dce468e068cc68e5741b5 Mon Sep 17 00:00:00 2001 From: Daria Sukhonina Date: Fri, 3 May 2024 17:02:26 +0300 Subject: [PATCH] Add safety comment to fix tidy --- core/src/future/async_drop.rs | 2 ++ 1 file changed, 2 insertions(+) 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) } }