From dbad0c83c16eb78c59d9d20bdc2c0c8162a003e3 Mon Sep 17 00:00:00 2001 From: bdbai Date: Wed, 1 Jan 2025 23:05:59 +0800 Subject: [PATCH] Revert fix in std win thread for unsafe_op_in_unsafe_fn --- library/std/src/sys/pal/windows/thread.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/sys/pal/windows/thread.rs b/library/std/src/sys/pal/windows/thread.rs index 36870375687bb..45e52cf4d047f 100644 --- a/library/std/src/sys/pal/windows/thread.rs +++ b/library/std/src/sys/pal/windows/thread.rs @@ -49,7 +49,7 @@ impl Thread { unsafe extern "system" fn thread_start(main: *mut c_void) -> u32 { // Next, reserve some stack space for if we otherwise run out of stack. - unsafe { stack_overflow::reserve_stack() }; + stack_overflow::reserve_stack(); // Finally, let's run some code. // SAFETY: We are simply recreating the box that was leaked earlier. // It's the responsibility of the one who call `Thread::new` to ensure this is safe to call here.