Skip to content

Commit

Permalink
Add safety comment to fix tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
zetanumbers committed May 3, 2024
1 parent acd25e5 commit e6961c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/core/src/future/async_drop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
}

Expand Down

0 comments on commit e6961c0

Please sign in to comment.