Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bf9bdef

Browse files
committedAug 27, 2017
Whitelist unwind import in std
This is a part of libbacktrace linkage and thus the compiler cannot detect if it's used or not.
1 parent 6e18fe4 commit bf9bdef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/libstd/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@
283283
#![feature(on_unimplemented)]
284284
#![feature(oom)]
285285
#![feature(optin_builtin_traits)]
286-
#![cfg_attr(any(unix, target_os = "redox"), feature(panic_unwind))]
286+
#![feature(panic_unwind)]
287287
#![feature(peek)]
288288
#![feature(placement_in_syntax)]
289289
#![feature(placement_new_protocol)]
@@ -358,7 +358,7 @@ extern crate std_unicode;
358358
extern crate libc;
359359

360360
// We always need an unwinder currently for backtraces
361-
#[cfg(any(unix, target_os = "redox"))]
361+
#[allow(unused_extern_crates)]
362362
extern crate unwind;
363363

364364
// compiler-rt intrinsics

0 commit comments

Comments
 (0)
Please sign in to comment.