diff options
| author | Tatsuyuki Ishi <ishitatsuyuki@gmail.com> | 2017-06-24 17:48:27 +0900 |
|---|---|---|
| committer | Tatsuyuki Ishi <ishitatsuyuki@gmail.com> | 2017-08-27 19:02:24 +0900 |
| commit | 611b1111394a065783091b17b025c34427af3d68 (patch) | |
| tree | 32fc252396dcc3d67cfab262a48febf5c03e1d8c /src/libstd | |
| parent | bc5bd51c4563cd76fd3d73eb3eeff7cf6e9905b1 (diff) | |
| download | rust-611b1111394a065783091b17b025c34427af3d68.tar.gz rust-611b1111394a065783091b17b025c34427af3d68.zip | |
Move unused-extern-crate to late pass
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/lib.rs | 3 | ||||
| -rw-r--r-- | src/libstd/prelude/mod.rs | 1 | ||||
| -rw-r--r-- | src/libstd/sys/unix/ext/fs.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index cf1eb5cd52e..9b80a5c462f 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -283,7 +283,7 @@ #![feature(on_unimplemented)] #![feature(oom)] #![feature(optin_builtin_traits)] -#![feature(panic_unwind)] +#![cfg_attr(any(unix, target_os = "redox"), feature(panic_unwind))] #![feature(peek)] #![feature(placement_in_syntax)] #![feature(placement_new_protocol)] @@ -358,6 +358,7 @@ extern crate std_unicode; extern crate libc; // We always need an unwinder currently for backtraces +#[cfg(any(unix, target_os = "redox"))] extern crate unwind; // compiler-rt intrinsics diff --git a/src/libstd/prelude/mod.rs b/src/libstd/prelude/mod.rs index 49cdba21a1d..538753d8692 100644 --- a/src/libstd/prelude/mod.rs +++ b/src/libstd/prelude/mod.rs @@ -23,6 +23,7 @@ //! On a technical level, Rust inserts //! //! ``` +//! # #[allow(unused_extern_crates)] //! extern crate std; //! ``` //! diff --git a/src/libstd/sys/unix/ext/fs.rs b/src/libstd/sys/unix/ext/fs.rs index a94585723a1..f44b9aa9615 100644 --- a/src/libstd/sys/unix/ext/fs.rs +++ b/src/libstd/sys/unix/ext/fs.rs @@ -154,8 +154,6 @@ pub trait OpenOptionsExt { /// # Examples /// /// ```no_run - /// # #![feature(libc)] - /// extern crate libc; /// use std::fs::OpenOptions; /// use std::os::unix::fs::OpenOptionsExt; /// |
