diff options
author | jyn <github@jyn.dev> | 2023-04-26 01:55:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-26 01:55:52 -0500 |
commit | 3fbaf789bdc59ee491eb20fe7b40ea66cf6cc3ad (patch) | |
tree | 26e965242fe2639f46facde72e63e505aeff97ab /tests/rustdoc-js-std/parser-errors.js | |
parent | 3163dfd1cd71487a5eb54d2f7c07bc2e1ef85d6a (diff) | |
parent | 01c4f319276da912dd2be768ae0ce9857ad6bb63 (diff) | |
download | rust-3fbaf789bdc59ee491eb20fe7b40ea66cf6cc3ad.tar.gz |
Rollup merge of #110587 - tomaka:fix-109727, r=jyn514
Fix `std` compilation error for wasi+atomics
Fix https://github.com/rust-lang/rust/issues/109727
It seems that the `unsupported/once.rs` module isn't meant to exist at the same time as the `futex` module, as they have conflicting definitions.
I've solved this by defining the `once` module only if `not(target_feature = "atomics")`.
The `wasm32-unknown-unknown` target [similarly only defines the `once` module if `not(target_feature = "atomics")`](https://github.com/tomaka/rust/blob/01c4f319276da912dd2be768ae0ce9857ad6bb63/library/std/src/sys/wasm/mod.rs#L69-L70).
As show in [this block of code](https://github.com/tomaka/rust/blob/01c4f319276da912dd2be768ae0ce9857ad6bb63/library/std/src/sys_common/once/mod.rs#L10-L34), the `sys::once` module doesn't need to exist if `all(target_arch = "wasm32", target_feature = "atomics")`.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions