We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3163dfd + 01c4f31 commit 3fbaf78Copy full SHA for 3fbaf78
library/std/src/sys/wasi/mod.rs
@@ -32,8 +32,6 @@ pub mod io;
32
#[path = "../unsupported/locks/mod.rs"]
33
pub mod locks;
34
pub mod net;
35
-#[path = "../unsupported/once.rs"]
36
-pub mod once;
37
pub mod os;
38
#[path = "../unix/os_str.rs"]
39
pub mod os_str;
@@ -51,6 +49,13 @@ pub mod thread_local_dtor;
51
49
pub mod thread_local_key;
52
50
pub mod time;
53
+cfg_if::cfg_if! {
+ if #[cfg(not(target_feature = "atomics"))] {
54
+ #[path = "../unsupported/once.rs"]
55
+ pub mod once;
56
+ }
57
+}
58
+
59
#[path = "../unsupported/common.rs"]
60
#[deny(unsafe_op_in_unsafe_fn)]
61
#[allow(unused)]
0 commit comments