Skip to content

Commit 3851329

Browse files
committed
Compile error when using atomics
Signed-off-by: Ryan Levick <[email protected]>
1 parent 0b6efe8 commit 3851329

File tree

1 file changed

+1
-10
lines changed
  • library/std/src/sys/wasi_preview2

1 file changed

+1
-10
lines changed

library/std/src/sys/wasi_preview2/mod.rs

+1-10
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,7 @@ pub mod time;
4949

5050
cfg_if::cfg_if! {
5151
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-
}
52+
compile_error!("The wasm32-wasi-preview2 target does not support atomics");
6253
} else {
6354
#[path = "../unsupported/locks/mod.rs"]
6455
pub mod locks;

0 commit comments

Comments
 (0)