diff options
| author | Eric Huss <eric@huss.org> | 2025-02-13 12:51:22 -0800 |
|---|---|---|
| committer | Eric Huss <eric@huss.org> | 2025-02-14 07:36:17 -0800 |
| commit | 4f4ea35a6969cdbebfdf96778e8a9d49bea8c9ce (patch) | |
| tree | 8cae3e3e42729395d2a9e5bda49b909ef3e04f90 /library/std/src/sys | |
| parent | d5f0aa49e711db038d7bd30ceb76ba260de8b1fd (diff) | |
| download | rust-4f4ea35a6969cdbebfdf96778e8a9d49bea8c9ce.tar.gz rust-4f4ea35a6969cdbebfdf96778e8a9d49bea8c9ce.zip | |
std: Apply unsafe_op_in_unsafe_fn
Diffstat (limited to 'library/std/src/sys')
| -rw-r--r-- | library/std/src/sys/pal/teeos/thread.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/pal/teeos/thread.rs b/library/std/src/sys/pal/teeos/thread.rs index c779c5f3ed8..e3b4908f858 100644 --- a/library/std/src/sys/pal/teeos/thread.rs +++ b/library/std/src/sys/pal/teeos/thread.rs @@ -56,7 +56,7 @@ impl Thread { } }; - let ret = libc::pthread_create(&mut native, &attr, thread_start, p as *mut _); + let ret = unsafe { libc::pthread_create(&mut native, &attr, thread_start, p as *mut _) }; // Note: if the thread creation fails and this assert fails, then p will // be leaked. However, an alternative design could cause double-free // which is clearly worse. |
