We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b6efe8 commit 3851329Copy full SHA for 3851329
library/std/src/sys/wasi_preview2/mod.rs
@@ -49,16 +49,7 @@ pub mod time;
49
50
cfg_if::cfg_if! {
51
if #[cfg(target_feature = "atomics")] {
52
- #[path = "../unix/locks"]
53
- pub mod locks {
54
- #![allow(unsafe_op_in_unsafe_fn)]
55
- mod futex_condvar;
56
- mod futex_mutex;
57
- mod futex_rwlock;
58
- pub(crate) use futex_condvar::Condvar;
59
- pub(crate) use futex_mutex::Mutex;
60
- pub(crate) use futex_rwlock::RwLock;
61
- }
+ compile_error!("The wasm32-wasi-preview2 target does not support atomics");
62
} else {
63
#[path = "../unsupported/locks/mod.rs"]
64
pub mod locks;
0 commit comments