From 676940320103a0465d038602fd97dcfd3e32e531 Mon Sep 17 00:00:00 2001 From: Narek Galstyan Date: Wed, 3 Jun 2020 22:35:20 -0700 Subject: [PATCH] Clarify documentation about wasm32 target_feature gates --- crates/core_arch/src/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/core_arch/src/mod.rs b/crates/core_arch/src/mod.rs index eecfaed363..4ed18d7648 100644 --- a/crates/core_arch/src/mod.rs +++ b/crates/core_arch/src/mod.rs @@ -57,6 +57,13 @@ pub mod arch { /// Platform-specific intrinsics for the `wasm32` platform. /// + + /// # Availability + /// + /// Note that intrinsics gated by `target_feature = "atomics"` or `target_feature = "simd128"` + /// are only available **when the standard library itself is compiled with the the respective + /// target feature**. This version of the standard library is not obtainable via `rustup`, + /// but rather will require the standard library to be compiled from source. /// See the [module documentation](../index.html) for more details. #[cfg(any(target_arch = "wasm32", dox))] #[doc(cfg(target_arch = "wasm32"))]