Skip to content

Commit

Permalink
Revert fix in std win thread for unsafe_op_in_unsafe_fn
Browse files Browse the repository at this point in the history
  • Loading branch information
bdbai committed Jan 1, 2025
1 parent daf858b commit dbad0c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sys/pal/windows/thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit dbad0c8

Please sign in to comment.