File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,11 +34,6 @@ use core::ptr::null_mut;
3434use 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" ) ) ) ]
4439pub fn at_exit ( func : Box < dyn FnOnce ( ) + Send > ) {
Original file line number Diff line number Diff line change @@ -236,11 +236,6 @@ unsafe impl Sync for Dtors {}
236236static 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" ) ) ) ]
246241pub fn at_exit ( func : Box < dyn FnOnce ( ) + Send > ) {
You can’t perform that action at this time.
0 commit comments