We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28ec93b commit b6337bbCopy full SHA for b6337bb
crates/as-if-std/src/lib.rs
@@ -2,7 +2,16 @@
2
// submodule into the standard library. We try to set this crate up similarly
3
// to the standard library itself to minimize the likelihood of issues when
4
// updating the `backtrace` crate.
5
-#![feature(optimize_attribute)]
+#![cfg_attr(
6
+ // Only used by the gimli backend, see src/symbolize/mod.rs
7
+ all(
8
+ any(unix, all(windows, target_env = "gnu")),
9
+ not(target_vendor = "uwp"),
10
+ not(target_os = "emscripten"),
11
+ any(not(backtrace_in_libstd), feature = "backtrace"),
12
+ ),
13
+ feature(optimize_attribute)
14
+)]
15
#![no_std]
16
17
extern crate alloc;
0 commit comments