diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2019-06-10 08:12:14 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2019-06-10 10:58:44 -0700 |
| commit | 8eb7f36a3ba06dbea4a44254c3e2d92455ae150f (patch) | |
| tree | 713fd6d6cc498ca34a5292d574981b9240c1cc5f /src/libstd/sys_common | |
| parent | a73ecb3d9c432f8f53117b1a6b6c209dc802dee7 (diff) | |
| download | rust-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/sys_common')
| -rw-r--r-- | src/libstd/sys_common/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys_common/mod.rs b/src/libstd/sys_common/mod.rs index c4daedefd8e..13a59f66c5c 100644 --- a/src/libstd/sys_common/mod.rs +++ b/src/libstd/sys_common/mod.rs @@ -65,7 +65,7 @@ pub mod bytestring; pub mod process; pub mod fs; -cfg_if! { +cfg_if::cfg_if! { if #[cfg(any(target_os = "cloudabi", target_os = "l4re", target_os = "redox", |
