about summary refs log tree commit diff
path: root/src/libstd/sys/wasm/thread.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-06-13 14:51:56 +0200
committerGitHub <noreply@github.com>2019-06-13 14:51:56 +0200
commitca06f8896b62c58fe366bdecf2c237d8a195fd0f (patch)
treeb5e501c69e7276b2ec9319075ce9ec2417996565 /src/libstd/sys/wasm/thread.rs
parenta0d05150c9f3297d558262e5637521d08f86d8de (diff)
parent8eb7f36a3ba06dbea4a44254c3e2d92455ae150f (diff)
downloadrust-ca06f8896b62c58fe366bdecf2c237d8a195fd0f.tar.gz
rust-ca06f8896b62c58fe366bdecf2c237d8a195fd0f.zip
Rollup merge of #61720 - alexcrichton:libstd-cfg-if-dep, r=sfackler
std: Remove internal definitions of `cfg_if!` macro

This is duplicated in a few locations throughout the sysroot to work
around issues with not exporting a macro in libstd but still wanting it
available to sysroot crates to define blocks. Nowadays though we can
simply depend on the `cfg-if` crate on crates.io, allowing us to use it
from there!
Diffstat (limited to 'src/libstd/sys/wasm/thread.rs')
-rw-r--r--src/libstd/sys/wasm/thread.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/wasm/thread.rs b/src/libstd/sys/wasm/thread.rs
index 1dc786cd5d7..61b4003cd3d 100644
--- a/src/libstd/sys/wasm/thread.rs
+++ b/src/libstd/sys/wasm/thread.rs
@@ -59,7 +59,7 @@ pub mod guard {
     pub unsafe fn init() -> Option<Guard> { None }
 }
 
-cfg_if! {
+cfg_if::cfg_if! {
     if #[cfg(all(target_feature = "atomics", feature = "wasm-bindgen-threads"))] {
         #[link(wasm_import_module = "__wbindgen_thread_xform__")]
         extern {