Skip to content

Commit f5214bd

Browse files
committed
Try to fix an extern crate warning
1 parent d3cc7ea commit f5214bd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@
5858
extern crate std;
5959

6060
// This is only used for gimli right now, so silence warnings elsewhere.
61-
#[cfg_attr(not(target_os = "linux"), allow(unused_extern_crates))]
61+
#[cfg_attr(
62+
any(not(target_os = "linux"), not(feature = "gimli-symbolize")),
63+
allow(unused_extern_crates)
64+
)]
6265
extern crate alloc;
6366

6467
pub use self::backtrace::{trace_unsynchronized, Frame};

0 commit comments

Comments
 (0)