diff options
| author | Daria Sukhonina <dariasukhonina@gmail.com> | 2024-05-03 17:02:26 +0300 |
|---|---|---|
| committer | Daria Sukhonina <dariasukhonina@gmail.com> | 2024-05-29 12:57:01 +0300 |
| commit | 2892302aef73715678f604ccbbf8e371bdf0ab4e (patch) | |
| tree | fdf5920fc547cfc69a68f30d4b044bf0b8870f19 | |
| parent | 7cdd95e1a683c89baff762a6c7755951bcd32717 (diff) | |
| download | rust-2892302aef73715678f604ccbbf8e371bdf0ab4e.tar.gz rust-2892302aef73715678f604ccbbf8e371bdf0ab4e.zip | |
Add safety comment to fix tidy
| -rw-r--r-- | library/core/src/future/async_drop.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/core/src/future/async_drop.rs b/library/core/src/future/async_drop.rs index ea7e2f52ba1..25138c445c4 100644 --- a/library/core/src/future/async_drop.rs +++ b/library/core/src/future/async_drop.rs @@ -259,6 +259,8 @@ async unsafe fn either<O: IntoFuture<Output = ()>, M: IntoFuture<Output = ()>, T #[cfg(not(bootstrap))] #[lang = "async_drop_deferred_drop_in_place"] async unsafe fn deferred_drop_in_place<T>(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) } } |
