From ce3f0719e6a19fce9fee7c361eb04a805730a668 Mon Sep 17 00:00:00 2001 From: Rolf Karp Date: Fri, 3 Nov 2017 15:21:05 +0100 Subject: [PATCH] Fix std compile error for windows-gnu targets without `backtrace` feature --- src/libstd/sys/windows/c.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libstd/sys/windows/c.rs b/src/libstd/sys/windows/c.rs index 39e00270233..6e0cccff001 100644 --- a/src/libstd/sys/windows/c.rs +++ b/src/libstd/sys/windows/c.rs @@ -1228,7 +1228,7 @@ compat_fn! { } } -#[cfg(target_env = "gnu")] +#[cfg(all(target_env = "gnu", feature = "backtrace"))] mod gnu { use super::*; @@ -1256,5 +1256,5 @@ mod gnu { } } -#[cfg(target_env = "gnu")] +#[cfg(all(target_env = "gnu", feature = "backtrace"))] pub use self::gnu::*;