Skip to content

Commit e6961c0

Browse files
committed
Add safety comment to fix tidy
1 parent acd25e5 commit e6961c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/core/src/future/async_drop.rs

+2
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,8 @@ async unsafe fn either<O: IntoFuture<Output = ()>, M: IntoFuture<Output = ()>, T
259259
#[cfg(not(bootstrap))]
260260
#[lang = "async_drop_deferred_drop_in_place"]
261261
async unsafe fn deferred_drop_in_place<T>(to_drop: *mut T) {
262+
// SAFETY: same safety requirements as with drop_in_place (implied by
263+
// function's name)
262264
unsafe { crate::ptr::drop_in_place(to_drop) }
263265
}
264266

0 commit comments

Comments
 (0)