Whitelist unwind import in std

This is a part of libbacktrace linkage and thus the compiler cannot detect if it's used or not.
This commit is contained in:
Tatsuyuki Ishi 2017-08-22 10:30:51 +09:00
parent 6e18fe4d22
commit bf9bdefe8a
1 changed files with 2 additions and 2 deletions

View File

@ -283,7 +283,7 @@
#![feature(on_unimplemented)]
#![feature(oom)]
#![feature(optin_builtin_traits)]
#![cfg_attr(any(unix, target_os = "redox"), feature(panic_unwind))]
#![feature(panic_unwind)]
#![feature(peek)]
#![feature(placement_in_syntax)]
#![feature(placement_new_protocol)]
@ -358,7 +358,7 @@ extern crate std_unicode;
extern crate libc;
// We always need an unwinder currently for backtraces
#[cfg(any(unix, target_os = "redox"))]
#[allow(unused_extern_crates)]
extern crate unwind;
// compiler-rt intrinsics