Skip to content

Commit ce3f071

Browse files
committed
Fix std compile error for windows-gnu targets without backtrace feature
1 parent 9f3b091 commit ce3f071

File tree

1 file changed

+2
-2
lines changed
  • src/libstd/sys/windows

1 file changed

+2
-2
lines changed

src/libstd/sys/windows/c.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,7 @@ compat_fn! {
12281228
}
12291229
}
12301230

1231-
#[cfg(target_env = "gnu")]
1231+
#[cfg(all(target_env = "gnu", feature = "backtrace"))]
12321232
mod gnu {
12331233
use super::*;
12341234

@@ -1256,5 +1256,5 @@ mod gnu {
12561256
}
12571257
}
12581258

1259-
#[cfg(target_env = "gnu")]
1259+
#[cfg(all(target_env = "gnu", feature = "backtrace"))]
12601260
pub use self::gnu::*;

0 commit comments

Comments
 (0)