diff options
| author | joboet <jonasboettiger@icloud.com> | 2025-08-09 19:07:08 +0200 | 
|---|---|---|
| committer | joboet <jonasboettiger@icloud.com> | 2025-09-10 15:26:17 +0200 | 
| commit | ad08577a503dfd03e308bd272e76d95e31c6d0ef (patch) | |
| tree | 3af8f20d10bdc66b12b45c66c049954f3a4c934f /library/std/src/sys/pal/unix/mod.rs | |
| parent | 4b15dd5a84742f9e7641b62e490765e0c1cb415c (diff) | |
| download | rust-ad08577a503dfd03e308bd272e76d95e31c6d0ef.tar.gz rust-ad08577a503dfd03e308bd272e76d95e31c6d0ef.zip | |
std: move `thread` into `sys`
Diffstat (limited to 'library/std/src/sys/pal/unix/mod.rs')
| -rw-r--r-- | library/std/src/sys/pal/unix/mod.rs | 3 | 
1 files changed, 1 insertions, 2 deletions
| diff --git a/library/std/src/sys/pal/unix/mod.rs b/library/std/src/sys/pal/unix/mod.rs index ac5c823a1bf..dd1059fe04a 100644 --- a/library/std/src/sys/pal/unix/mod.rs +++ b/library/std/src/sys/pal/unix/mod.rs @@ -17,7 +17,6 @@ pub mod os; pub mod pipe; pub mod stack_overflow; pub mod sync; -pub mod thread; pub mod thread_parking; pub mod time; @@ -55,7 +54,7 @@ pub unsafe fn init(argc: isize, argv: *const *const u8, sigpipe: u8) { // thread-id for the main thread and so renaming the main thread will rename the // process and we only want to enable this on platforms we've tested. if cfg!(target_vendor = "apple") { - thread::Thread::set_name(&c"main"); + crate::sys::thread::set_name(c"main"); } unsafe fn sanitize_standard_fds() { | 
