From e3afce8c70ab085ae84da0ed6d42e19f9736667d Mon Sep 17 00:00:00 2001 From: sandydoo Date: Wed, 27 Jul 2022 12:32:34 +0400 Subject: [PATCH] Fix futex module imports on wasm+atomics --- library/std/src/sys/wasm/mod.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/library/std/src/sys/wasm/mod.rs b/library/std/src/sys/wasm/mod.rs index 55b5ad314daf0..4159efe2a0523 100644 --- a/library/std/src/sys/wasm/mod.rs +++ b/library/std/src/sys/wasm/mod.rs @@ -52,9 +52,11 @@ cfg_if::cfg_if! { #[path = "../unix/locks"] pub mod locks { #![allow(unsafe_op_in_unsafe_fn)] - mod futex; + mod futex_condvar; + mod futex_mutex; mod futex_rwlock; - pub(crate) use futex::{Mutex, MovableMutex, Condvar, MovableCondvar}; + pub(crate) use futex_condvar::{Condvar, MovableCondvar}; + pub(crate) use futex_mutex::{Mutex, MovableMutex}; pub(crate) use futex_rwlock::{RwLock, MovableRwLock}; } #[path = "atomics/futex.rs"]