Skip to content

Commit 20fdebc

Browse files
authored
Delete obsolete safety comments. (#124)
1 parent 3578b40 commit 20fdebc

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

src/program/libc.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ use core::ptr::null_mut;
3434
use linux_raw_sys::ctypes::c_int;
3535

3636
/// Register a function to be called when [`exit`] is called.
37-
///
38-
/// # Safety
39-
///
40-
/// This arranges for `func` to be called, and passed `obj`, when the program
41-
/// exits.
4237
#[cfg(feature = "alloc")]
4338
#[cfg_attr(docsrs, doc(cfg(feature = "alloc")))]
4439
pub fn at_exit(func: Box<dyn FnOnce() + Send>) {

src/program/linux_raw.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,6 @@ unsafe impl Sync for Dtors {}
236236
static mut DTORS: Dtors = Dtors(smallvec::SmallVec::new_const());
237237

238238
/// Register a function to be called when [`exit`] is called.
239-
///
240-
/// # Safety
241-
///
242-
/// This arranges for `func` to be called, and passed `obj`, when the program
243-
/// exits.
244239
#[cfg(feature = "alloc")]
245240
#[cfg_attr(docsrs, doc(cfg(feature = "alloc")))]
246241
pub fn at_exit(func: Box<dyn FnOnce() + Send>) {

0 commit comments

Comments
 (0)