about summary refs log tree commit diff
path: root/src/libstd/os
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2019-06-10 08:12:14 -0700
committerAlex Crichton <alex@alexcrichton.com>2019-06-10 10:58:44 -0700
commit8eb7f36a3ba06dbea4a44254c3e2d92455ae150f (patch)
tree713fd6d6cc498ca34a5292d574981b9240c1cc5f /src/libstd/os
parenta73ecb3d9c432f8f53117b1a6b6c209dc802dee7 (diff)
downloadrust-8eb7f36a3ba06dbea4a44254c3e2d92455ae150f.tar.gz
rust-8eb7f36a3ba06dbea4a44254c3e2d92455ae150f.zip
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/os')
-rw-r--r--src/libstd/os/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/os/mod.rs b/src/libstd/os/mod.rs
index 44cbc180b8b..94e8b7805cf 100644
--- a/src/libstd/os/mod.rs
+++ b/src/libstd/os/mod.rs
@@ -3,7 +3,7 @@
 #![stable(feature = "os", since = "1.0.0")]
 #![allow(missing_docs, nonstandard_style, missing_debug_implementations)]
 
-cfg_if! {
+cfg_if::cfg_if! {
     if #[cfg(rustdoc)] {
 
         // When documenting libstd we want to show unix/windows/linux modules as