about summary refs log tree commit diff
path: root/library/std/src/sys/pal/wasm
diff options
context:
space:
mode:
authorjoboet <jonasboettiger@icloud.com>2025-08-09 19:07:08 +0200
committerjoboet <jonasboettiger@icloud.com>2025-09-10 15:26:17 +0200
commitad08577a503dfd03e308bd272e76d95e31c6d0ef (patch)
tree3af8f20d10bdc66b12b45c66c049954f3a4c934f /library/std/src/sys/pal/wasm
parent4b15dd5a84742f9e7641b62e490765e0c1cb415c (diff)
downloadrust-ad08577a503dfd03e308bd272e76d95e31c6d0ef.tar.gz
rust-ad08577a503dfd03e308bd272e76d95e31c6d0ef.zip
std: move `thread` into `sys`
Diffstat (limited to 'library/std/src/sys/pal/wasm')
-rw-r--r--library/std/src/sys/pal/wasm/mod.rs15
1 files changed, 3 insertions, 12 deletions
diff --git a/library/std/src/sys/pal/wasm/mod.rs b/library/std/src/sys/pal/wasm/mod.rs
index 346c9ff88c9..a20cd0e9ac7 100644
--- a/library/std/src/sys/pal/wasm/mod.rs
+++ b/library/std/src/sys/pal/wasm/mod.rs
@@ -23,18 +23,9 @@ pub mod pipe;
 #[path = "../unsupported/time.rs"]
 pub mod time;
 
-cfg_select! {
-    target_feature = "atomics" => {
-        #[path = "atomics/futex.rs"]
-        pub mod futex;
-        #[path = "atomics/thread.rs"]
-        pub mod thread;
-    }
-    _ => {
-        #[path = "../unsupported/thread.rs"]
-        pub mod thread;
-    }
-}
+#[cfg(target_feature = "atomics")]
+#[path = "atomics/futex.rs"]
+pub mod futex;
 
 #[path = "../unsupported/common.rs"]
 #[deny(unsafe_op_in_unsafe_fn)]