Skip to content

Commit dbad0c8

Browse files
committed
Revert fix in std win thread for unsafe_op_in_unsafe_fn
1 parent daf858b commit dbad0c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sys/pal/windows/thread.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ impl Thread {
4949

5050
unsafe extern "system" fn thread_start(main: *mut c_void) -> u32 {
5151
// Next, reserve some stack space for if we otherwise run out of stack.
52-
unsafe { stack_overflow::reserve_stack() };
52+
stack_overflow::reserve_stack();
5353
// Finally, let's run some code.
5454
// SAFETY: We are simply recreating the box that was leaked earlier.
5555
// It's the responsibility of the one who call `Thread::new` to ensure this is safe to call here.

0 commit comments

Comments
 (0)