File tree Expand file tree Collapse file tree 2 files changed +1
-13
lines changed Expand file tree Collapse file tree 2 files changed +1
-13
lines changed Original file line number Diff line number Diff line change 11#![ cfg_attr( test, allow( dead_code) ) ]
22
3- pub struct Handler ;
4-
5- impl Handler {
6- pub unsafe fn new ( ) -> Handler {
7- Handler
8- }
9- }
10-
113pub unsafe fn init ( ) { }
124
135pub unsafe fn cleanup ( ) { }
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ use crate::io;
44use crate :: mem;
55use crate :: ptr;
66use crate :: sys:: cloudabi:: abi;
7- use crate :: sys:: stack_overflow;
87use crate :: sys:: time:: checked_dur2intervals;
98use crate :: time:: Duration ;
109
@@ -47,10 +46,7 @@ impl Thread {
4746
4847 extern "C" fn thread_start ( main : * mut libc:: c_void ) -> * mut libc:: c_void {
4948 unsafe {
50- // Next, set up our stack overflow handler which may get triggered if we run
51- // out of stack.
52- let _handler = stack_overflow:: Handler :: new ( ) ;
53- // Finally, let's run some code.
49+ // Let's run some code.
5450 Box :: from_raw ( main as * mut Box < dyn FnOnce ( ) > ) ( ) ;
5551 }
5652 ptr:: null_mut ( )
You can’t perform that action at this time.
0 commit comments