We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28ec93b commit 7cc5b3fCopy full SHA for 7cc5b3f
1 file changed
crates/as-if-std/src/lib.rs
@@ -2,7 +2,17 @@
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
+ backtrace_in_libstd,
9
+ feature = "backtrace",
10
+ any(unix, all(windows, target_env = "gnu")),
11
+ not(target_vendor = "uwp"),
12
+ not(target_os = "emscripten"),
13
+ ),
14
+ feature(optimize_attribute)
15
+)]
16
#![no_std]
17
18
extern crate alloc;
0 commit comments