Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bb6d4eb

Browse files
committedMay 29, 2024
Add safety comment to fix tidy
1 parent c8b699c commit bb6d4eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎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)
Failed to load comments.