diff options
| author | Nicola Krumschmidt <git@nkcom.de> | 2024-09-04 02:18:32 +0200 |
|---|---|---|
| committer | Nicola Krumschmidt <git@nkcom.de> | 2024-09-29 04:48:13 +0200 |
| commit | 87f17f3ccb69e9827562522ae1a38f84d2ba998a (patch) | |
| tree | d9ca03f59b55b85e2ea912e0bb6d6349305ff3b2 /library/std/src/thread | |
| parent | 3b11c82a3d625a01dd5f7b91785374103eb41589 (diff) | |
| download | rust-87f17f3ccb69e9827562522ae1a38f84d2ba998a.tar.gz rust-87f17f3ccb69e9827562522ae1a38f84d2ba998a.zip | |
Fix std tests for wasm32-wasip2 target
Diffstat (limited to 'library/std/src/thread')
| -rw-r--r-- | library/std/src/thread/local.rs | 2 | ||||
| -rw-r--r-- | library/std/src/thread/mod.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/thread/local.rs b/library/std/src/thread/local.rs index f147c5fdcd1..88bf186700f 100644 --- a/library/std/src/thread/local.rs +++ b/library/std/src/thread/local.rs @@ -2,7 +2,7 @@ #![unstable(feature = "thread_local_internals", issue = "none")] -#[cfg(all(test, not(target_os = "emscripten")))] +#[cfg(all(test, not(any(target_os = "emscripten", target_os = "wasi"))))] mod tests; #[cfg(test)] diff --git a/library/std/src/thread/mod.rs b/library/std/src/thread/mod.rs index 41f02af9366..00e596d4d50 100644 --- a/library/std/src/thread/mod.rs +++ b/library/std/src/thread/mod.rs @@ -155,7 +155,7 @@ // Under `test`, `__FastLocalKeyInner` seems unused. #![cfg_attr(test, allow(dead_code))] -#[cfg(all(test, not(target_os = "emscripten")))] +#[cfg(all(test, not(any(target_os = "emscripten", target_os = "wasi"))))] mod tests; use crate::any::Any; |
