about summary refs log tree commit diff
path: root/library/stdarch/crates/std_detect/src/detect/cache.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2019-09-24 12:13:35 -0700
committergnzlbg <gnzlbg@users.noreply.github.com>2019-10-10 12:43:27 +0200
commit036b6348d9ec5ef0a5d58cebc6b160f25e1d6df3 (patch)
tree1ee63904c412f632d312d34dd376d6ef3b5d3df2 /library/stdarch/crates/std_detect/src/detect/cache.rs
parentcd7aa7720ab8b6b0efce3bdd4b8d79e19b4ad473 (diff)
downloadrust-036b6348d9ec5ef0a5d58cebc6b160f25e1d6df3.tar.gz
rust-036b6348d9ec5ef0a5d58cebc6b160f25e1d6df3.zip
Remove need for `#[macro_use]` with `cfg-if`
Modernizes usage of `cfg_if!` slightly
Diffstat (limited to 'library/stdarch/crates/std_detect/src/detect/cache.rs')
-rw-r--r--library/stdarch/crates/std_detect/src/detect/cache.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/stdarch/crates/std_detect/src/detect/cache.rs b/library/stdarch/crates/std_detect/src/detect/cache.rs
index 9179fbd9389..fe2abf5cf5e 100644
--- a/library/stdarch/crates/std_detect/src/detect/cache.rs
+++ b/library/stdarch/crates/std_detect/src/detect/cache.rs
@@ -158,7 +158,7 @@ impl Cache {
         self.1.store(hi, Ordering::Relaxed);
     }
 }
-cfg_if! {
+cfg_if::cfg_if! {
     if #[cfg(feature = "std_detect_env_override")] {
         #[inline(never)]
         fn initialize(mut value: Initializer) {