From 5dbaac135785bca7152c5809430b1fb1653db8b1 Mon Sep 17 00:00:00 2001 From: Leonard Chan Date: Tue, 27 Jan 2026 11:25:04 -0800 Subject: [PATCH] Remove Fuchsia from target OS list in unix.rs for sleep --- library/std/src/sys/thread/mod.rs | 2 -- library/std/src/sys/thread/unix.rs | 2 -- library/std/src/thread/functions.rs | 1 - 3 files changed, 5 deletions(-) diff --git a/library/std/src/sys/thread/mod.rs b/library/std/src/sys/thread/mod.rs index 5010774dafde2..9816981c7fc88 100644 --- a/library/std/src/sys/thread/mod.rs +++ b/library/std/src/sys/thread/mod.rs @@ -70,7 +70,6 @@ cfg_select! { target_os = "illumos", target_os = "dragonfly", target_os = "hurd", - target_os = "fuchsia", target_os = "vxworks", target_os = "wasi", target_vendor = "apple", @@ -131,7 +130,6 @@ cfg_select! { target_os = "illumos", target_os = "dragonfly", target_os = "hurd", - target_os = "fuchsia", target_os = "vxworks", target_os = "wasi", target_vendor = "apple", diff --git a/library/std/src/sys/thread/unix.rs b/library/std/src/sys/thread/unix.rs index e708c9a3f1bab..b758737d00c64 100644 --- a/library/std/src/sys/thread/unix.rs +++ b/library/std/src/sys/thread/unix.rs @@ -542,7 +542,6 @@ pub fn sleep(dur: Duration) { target_os = "illumos", target_os = "dragonfly", target_os = "hurd", - target_os = "fuchsia", target_os = "vxworks", target_os = "wasi", ) => { @@ -640,7 +639,6 @@ pub fn sleep(dur: Duration) { target_os = "illumos", target_os = "dragonfly", target_os = "hurd", - target_os = "fuchsia", target_os = "vxworks", target_os = "wasi", ))] diff --git a/library/std/src/thread/functions.rs b/library/std/src/thread/functions.rs index 73d7278785704..95d7aaf518408 100644 --- a/library/std/src/thread/functions.rs +++ b/library/std/src/thread/functions.rs @@ -316,7 +316,6 @@ pub fn sleep(dur: Duration) { /// | Illumos | [clock_nanosleep] (Monotonic Clock)] | /// | Dragonfly | [clock_nanosleep] (Monotonic Clock)] | /// | Hurd | [clock_nanosleep] (Monotonic Clock)] | -/// | Fuchsia | [clock_nanosleep] (Monotonic Clock)] | /// | Vxworks | [clock_nanosleep] (Monotonic Clock)] | /// | Apple | `mach_wait_until` | /// | Other | `sleep_until` uses [`sleep`] and does not issue a syscall itself |