diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-08-11 22:11:46 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-08-11 22:42:22 -0700 |
| commit | 837ae4f3d417151c3d2b38672bf92174d8d9266b (patch) | |
| tree | 042a42462a85d298668f0974ab97e2a652414434 /src/libstd | |
| parent | bbef8893f798452874f15374992804c8184c32c5 (diff) | |
| parent | 938099a7ebccbad2a2cad58d71df316d5ccd512c (diff) | |
| download | rust-837ae4f3d417151c3d2b38672bf92174d8d9266b.tar.gz rust-837ae4f3d417151c3d2b38672bf92174d8d9266b.zip | |
rollup merge of #27678: alexcrichton/snapshots
* Lots of core prelude imports removed * Makefile support for MSVC env vars and Rust crates removed * Makefile support for morestack removed
Diffstat (limited to 'src/libstd')
59 files changed, 0 insertions, 186 deletions
diff --git a/src/libstd/ffi/os_str.rs b/src/libstd/ffi/os_str.rs index 83d76481d49..8831830f799 100644 --- a/src/libstd/ffi/os_str.rs +++ b/src/libstd/ffi/os_str.rs @@ -32,9 +32,6 @@ #![unstable(feature = "os_str", reason = "recently added as part of path/io reform")] -#[cfg(stage0)] -use core::prelude::v1::*; - use borrow::{Borrow, Cow, ToOwned}; use ffi::CString; use fmt::{self, Debug}; diff --git a/src/libstd/fs.rs b/src/libstd/fs.rs index 6995ed07e99..ba32ffc49d4 100644 --- a/src/libstd/fs.rs +++ b/src/libstd/fs.rs @@ -17,9 +17,6 @@ #![stable(feature = "rust1", since = "1.0.0")] -#[cfg(stage0)] -use core::prelude::v1::*; - use fmt; use ffi::OsString; use io::{self, SeekFrom, Seek, Read, Write}; diff --git a/src/libstd/io/cursor.rs b/src/libstd/io/cursor.rs index 8033d77ff6a..9590f0b7aa7 100644 --- a/src/libstd/io/cursor.rs +++ b/src/libstd/io/cursor.rs @@ -292,9 +292,6 @@ impl Write for Cursor<Vec<u8>> { #[cfg(test)] mod tests { - #[cfg(stage0)] - use core::prelude::v1::*; - use io::prelude::*; use io::{Cursor, SeekFrom}; use vec::Vec; diff --git a/src/libstd/io/impls.rs b/src/libstd/io/impls.rs index 864870a5905..a5c8ba335c1 100644 --- a/src/libstd/io/impls.rs +++ b/src/libstd/io/impls.rs @@ -8,9 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[cfg(stage0)] -use core::prelude::v1::*; - use boxed::Box; use cmp; use io::{self, SeekFrom, Read, Write, Seek, BufRead, Error, ErrorKind}; diff --git a/src/libstd/io/util.rs b/src/libstd/io/util.rs index 6e218f6ca7e..07a9548224a 100644 --- a/src/libstd/io/util.rs +++ b/src/libstd/io/util.rs @@ -10,9 +10,6 @@ #![allow(missing_copy_implementations)] -#[cfg(stage0)] -use prelude::v1::*; - use io::{self, Read, Write, ErrorKind, BufRead}; /// Copies the entire contents of a reader into a writer. diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index 0512833b758..6041c2d3d47 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -249,7 +249,6 @@ #![cfg_attr(test, feature(float_from_str_radix, range_inclusive, float_extras, hash_default))] #![cfg_attr(test, feature(test, rustc_private, float_consts))] #![cfg_attr(target_env = "msvc", feature(link_args))] -#![cfg_attr(stage0, feature(core, core_prelude))] // Don't link to std. We are std. #![no_std] @@ -257,8 +256,6 @@ #![allow(trivial_casts)] #![deny(missing_docs)] -#[cfg(stage0)] #[macro_use] extern crate core; - #[cfg(test)] extern crate test; #[cfg(test)] #[macro_use] extern crate log; diff --git a/src/libstd/net/udp.rs b/src/libstd/net/udp.rs index 290aa6e2fda..1e1ffc19900 100644 --- a/src/libstd/net/udp.rs +++ b/src/libstd/net/udp.rs @@ -11,9 +11,6 @@ #![unstable(feature = "udp", reason = "remaining functions have not been \ scrutinized enough to be stabilized")] -#[cfg(stage0)] -use prelude::v1::*; - use fmt; use io::{self, Error, ErrorKind}; use net::{ToSocketAddrs, SocketAddr, IpAddr}; diff --git a/src/libstd/num/f32.rs b/src/libstd/num/f32.rs index 64da75e94db..6a8026a807e 100644 --- a/src/libstd/num/f32.rs +++ b/src/libstd/num/f32.rs @@ -15,9 +15,6 @@ #![stable(feature = "rust1", since = "1.0.0")] #![allow(missing_docs)] -#[cfg(stage0)] -use prelude::v1::*; - use core::num; #[cfg(not(target_env = "msvc"))] use intrinsics; diff --git a/src/libstd/num/f64.rs b/src/libstd/num/f64.rs index fcba821522e..e757ff90fdd 100644 --- a/src/libstd/num/f64.rs +++ b/src/libstd/num/f64.rs @@ -15,9 +15,6 @@ #![stable(feature = "rust1", since = "1.0.0")] #![allow(missing_docs)] -#[cfg(stage0)] -use prelude::v1::*; - use core::num; use intrinsics; use libc::c_int; diff --git a/src/libstd/num/mod.rs b/src/libstd/num/mod.rs index db7fd463e07..d1ef763e0f6 100644 --- a/src/libstd/num/mod.rs +++ b/src/libstd/num/mod.rs @@ -43,8 +43,6 @@ pub fn test_num<T>(ten: T, two: T) where #[cfg(test)] mod tests { - #[cfg(stage0)] - use core::prelude::v1::*; use super::*; use i8; use i16; diff --git a/src/libstd/path.rs b/src/libstd/path.rs index 93d51457331..489438973b3 100644 --- a/src/libstd/path.rs +++ b/src/libstd/path.rs @@ -98,9 +98,6 @@ #![stable(feature = "rust1", since = "1.0.0")] -#[cfg(stage0)] -use core::prelude::v1::*; - use ascii::*; use borrow::{Borrow, IntoCow, ToOwned, Cow}; use cmp; @@ -135,8 +132,6 @@ use self::platform::{is_sep_byte, is_verbatim_sep, MAIN_SEP_STR, parse_prefix}; #[cfg(unix)] mod platform { use super::Prefix; - #[cfg(stage0)] - use core::prelude::v1::*; use ffi::OsStr; #[inline] @@ -159,8 +154,6 @@ mod platform { #[cfg(windows)] mod platform { - #[cfg(stage0)] - use core::prelude::v1::*; use ascii::*; use super::{os_str_as_u8_slice, u8_slice_as_os_str, Prefix}; @@ -1749,8 +1742,6 @@ impl AsRef<Path> for PathBuf { #[cfg(test)] mod tests { use super::*; - #[cfg(stage0)] - use core::prelude::v1::*; use string::{ToString, String}; use vec::Vec; diff --git a/src/libstd/rand/mod.rs b/src/libstd/rand/mod.rs index df9cd98084b..ee46ec5c9c4 100644 --- a/src/libstd/rand/mod.rs +++ b/src/libstd/rand/mod.rs @@ -57,9 +57,6 @@ #![unstable(feature = "rand")] -#[cfg(stage0)] -use prelude::v1::*; - use cell::RefCell; use io; use mem; diff --git a/src/libstd/rand/os.rs b/src/libstd/rand/os.rs index 51c7606c802..51d5af056cb 100644 --- a/src/libstd/rand/os.rs +++ b/src/libstd/rand/os.rs @@ -15,7 +15,6 @@ pub use self::imp::OsRng; #[cfg(all(unix, not(target_os = "ios")))] mod imp { - #[cfg(stage0)] use prelude::v1::*; use self::OsRngInner::*; use fs::File; @@ -249,9 +248,6 @@ mod imp { #[cfg(windows)] mod imp { - #[cfg(stage0)] - use prelude::v1::*; - use io; use mem; use rand::Rng; diff --git a/src/libstd/rand/reader.rs b/src/libstd/rand/reader.rs index 8ac2722f65a..36adf44cd3a 100644 --- a/src/libstd/rand/reader.rs +++ b/src/libstd/rand/reader.rs @@ -12,7 +12,6 @@ #![allow(dead_code)] -#[cfg(stage0)] use prelude::v1::*; use io::prelude::*; use rand::Rng; diff --git a/src/libstd/rt/args.rs b/src/libstd/rt/args.rs index e77a2bbd0b9..cf8bac31057 100644 --- a/src/libstd/rt/args.rs +++ b/src/libstd/rt/args.rs @@ -19,8 +19,6 @@ //! //! FIXME #7756: Would be nice for this to not exist. -#[cfg(stage0)] -use core::prelude::v1::*; use vec::Vec; /// One-time global initialization. @@ -141,8 +139,6 @@ mod imp { target_os = "ios", target_os = "windows"))] mod imp { - #[cfg(stage0)] - use core::prelude::v1::*; use vec::Vec; pub unsafe fn init(_argc: isize, _argv: *const *const u8) { diff --git a/src/libstd/rt/backtrace.rs b/src/libstd/rt/backtrace.rs index 18d93cba8bc..9e7ed89bae1 100644 --- a/src/libstd/rt/backtrace.rs +++ b/src/libstd/rt/backtrace.rs @@ -12,9 +12,6 @@ #![allow(non_camel_case_types)] -#[cfg(stage0)] -use prelude::v1::*; - use env; use sync::atomic::{self, Ordering}; diff --git a/src/libstd/sync/future.rs b/src/libstd/sync/future.rs index d0314da19d3..506b8260278 100644 --- a/src/libstd/sync/future.rs +++ b/src/libstd/sync/future.rs @@ -39,8 +39,6 @@ outside in crates.io first")] #![allow(deprecated)] -#[cfg(stage0)] -use core::prelude::v1::*; use core::mem::replace; use boxed::Box; diff --git a/src/libstd/sync/mpsc/mod.rs b/src/libstd/sync/mpsc/mod.rs index 954edefcc45..c37c0405bbb 100644 --- a/src/libstd/sync/mpsc/mod.rs +++ b/src/libstd/sync/mpsc/mod.rs @@ -265,9 +265,6 @@ // And now that you've seen all the races that I found and attempted to fix, // here's the code for you to find some more! -#[cfg(stage0)] -use prelude::v1::*; - use sync::Arc; use error; use fmt; diff --git a/src/libstd/sync/mpsc/mpsc_queue.rs b/src/libstd/sync/mpsc/mpsc_queue.rs index f45032d327f..e4eba3d3d20 100644 --- a/src/libstd/sync/mpsc/mpsc_queue.rs +++ b/src/libstd/sync/mpsc/mpsc_queue.rs @@ -40,9 +40,6 @@ pub use self::PopResult::*; -#[cfg(stage0)] -use core::prelude::v1::*; - use alloc::boxed::Box; use core::ptr; use core::cell::UnsafeCell; diff --git a/src/libstd/sync/mpsc/oneshot.rs b/src/libstd/sync/mpsc/oneshot.rs index b84cb3b5472..cb930280964 100644 --- a/src/libstd/sync/mpsc/oneshot.rs +++ b/src/libstd/sync/mpsc/oneshot.rs @@ -37,9 +37,6 @@ pub use self::UpgradeResult::*; pub use self::SelectionResult::*; use self::MyUpgrade::*; -#[cfg(stage0)] -use core::prelude::v1::*; - use sync::mpsc::Receiver; use sync::mpsc::blocking::{self, SignalToken}; use core::mem; diff --git a/src/libstd/sync/mpsc/select.rs b/src/libstd/sync/mpsc/select.rs index c46e61cf414..56d903fed3b 100644 --- a/src/libstd/sync/mpsc/select.rs +++ b/src/libstd/sync/mpsc/select.rs @@ -57,9 +57,6 @@ but no guarantees beyond this are being made")] -#[cfg(stage0)] -use core::prelude::v1::*; - use core::cell::{Cell, UnsafeCell}; use core::marker; use core::ptr; diff --git a/src/libstd/sync/mpsc/shared.rs b/src/libstd/sync/mpsc/shared.rs index 8c019395d30..a3779931c7b 100644 --- a/src/libstd/sync/mpsc/shared.rs +++ b/src/libstd/sync/mpsc/shared.rs @@ -20,9 +20,6 @@ pub use self::Failure::*; -#[cfg(stage0)] -use core::prelude::v1::*; - use core::cmp; use core::isize; diff --git a/src/libstd/sync/mpsc/spsc_queue.rs b/src/libstd/sync/mpsc/spsc_queue.rs index 5c0db521007..819f75c006b 100644 --- a/src/libstd/sync/mpsc/spsc_queue.rs +++ b/src/libstd/sync/mpsc/spsc_queue.rs @@ -33,9 +33,6 @@ //! concurrently between two threads. This data structure is safe to use and //! enforces the semantics that there is one pusher and one popper. -#[cfg(stage0)] -use core::prelude::v1::*; - use alloc::boxed::Box; use core::ptr; use core::cell::UnsafeCell; diff --git a/src/libstd/sync/mpsc/stream.rs b/src/libstd/sync/mpsc/stream.rs index a9514da4698..a9da1b12f7d 100644 --- a/src/libstd/sync/mpsc/stream.rs +++ b/src/libstd/sync/mpsc/stream.rs @@ -22,9 +22,6 @@ pub use self::UpgradeResult::*; pub use self::SelectionResult::*; use self::Message::*; -#[cfg(stage0)] -use core::prelude::v1::*; - use core::cmp; use core::isize; use thread; diff --git a/src/libstd/sync/mpsc/sync.rs b/src/libstd/sync/mpsc/sync.rs index 7c9298fff2a..84d758cf9b3 100644 --- a/src/libstd/sync/mpsc/sync.rs +++ b/src/libstd/sync/mpsc/sync.rs @@ -33,9 +33,6 @@ /// of a synchronous channel. There are a few branches for the unbuffered case, /// but they're mostly just relevant to blocking senders. -#[cfg(stage0)] -use core::prelude::v1::*; - pub use self::Failure::*; use self::Blocker::*; diff --git a/src/libstd/sync/once.rs b/src/libstd/sync/once.rs index 53191e14bec..a91e1321149 100644 --- a/src/libstd/sync/once.rs +++ b/src/libstd/sync/once.rs @@ -13,9 +13,6 @@ //! This primitive is meant to be used to run one-time initialization. An //! example use case would be for initializing an FFI library. -#[cfg(stage0)] -use prelude::v1::*; - use isize; use sync::atomic::{AtomicIsize, Ordering}; use sync::StaticMutex; diff --git a/src/libstd/sys/common/backtrace.rs b/src/libstd/sys/common/backtrace.rs index 17953d0af4e..7f56afc9e1f 100644 --- a/src/libstd/sys/common/backtrace.rs +++ b/src/libstd/sys/common/backtrace.rs @@ -8,8 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[cfg(stage0)] -use prelude::v1::*; use io::prelude::*; use io; diff --git a/src/libstd/sys/common/mod.rs b/src/libstd/sys/common/mod.rs index d63b66c42c7..aca1f42c529 100644 --- a/src/libstd/sys/common/mod.rs +++ b/src/libstd/sys/common/mod.rs @@ -10,9 +10,6 @@ #![allow(missing_docs)] -#[cfg(stage0)] -use prelude::v1::*; - pub mod backtrace; pub mod condvar; pub mod mutex; @@ -51,7 +48,3 @@ pub trait IntoInner<Inner> { pub trait FromInner<Inner> { fn from_inner(inner: Inner) -> Self; } - -#[cfg(stage0)] -#[lang = "stack_exhausted"] -pub fn stack_exhausted() {} diff --git a/src/libstd/sys/common/poison.rs b/src/libstd/sys/common/poison.rs index 196fe37d456..c6917d8fca5 100644 --- a/src/libstd/sys/common/poison.rs +++ b/src/libstd/sys/common/poison.rs @@ -8,9 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[cfg(stage0)] -use prelude::v1::*; - use cell::Cell; use error::{Error}; use fmt; diff --git a/src/libstd/sys/common/thread_info.rs b/src/libstd/sys/common/thread_info.rs index fb4e0ec70e0..0467c67167b 100644 --- a/src/libstd/sys/common/thread_info.rs +++ b/src/libstd/sys/common/thread_info.rs @@ -10,9 +10,6 @@ #![allow(dead_code)] // stack_guard isn't used right now on all platforms -#[cfg(stage0)] -use core::prelude::v1::*; - use cell::RefCell; use string::String; use thread::Thread; diff --git a/src/libstd/sys/common/thread_local.rs b/src/libstd/sys/common/thread_local.rs index 2269a053874..f68c57c86ef 100644 --- a/src/libstd/sys/common/thread_local.rs +++ b/src/libstd/sys/common/thread_local.rs @@ -58,9 +58,6 @@ #![unstable(feature = "thread_local_internals")] #![allow(dead_code)] // sys isn't exported yet -#[cfg(stage0)] -use prelude::v1::*; - use sync::atomic::{self, AtomicUsize, Ordering}; use sys::thread_local as imp; diff --git a/src/libstd/sys/common/wtf8.rs b/src/libstd/sys/common/wtf8.rs index 0a5f4563dea..9e4a80a411b 100644 --- a/src/libstd/sys/common/wtf8.rs +++ b/src/libstd/sys/common/wtf8.rs @@ -25,9 +25,6 @@ // unix (it's mostly used on windows), so don't worry about dead code here. #![allow(dead_code)] -#[cfg(stage0)] -use core::prelude::v1::*; - use core::char::{encode_utf8_raw, encode_utf16_raw}; use core::str::next_code_point; diff --git a/src/libstd/sys/unix/backtrace.rs b/src/libstd/sys/unix/backtrace.rs index bca4aa56d0a..853e745b8a1 100644 --- a/src/libstd/sys/unix/backtrace.rs +++ b/src/libstd/sys/unix/backtrace.rs @@ -83,8 +83,6 @@ /// to symbols. This is a bit of a hokey implementation as-is, but it works for /// all unix platforms we support right now, so it at least gets the job done. -#[cfg(stage0)] -use prelude::v1::*; use io::prelude::*; use ffi::CStr; diff --git a/src/libstd/sys/unix/condvar.rs b/src/libstd/sys/unix/condvar.rs index 5d18c1d6280..b9538867b25 100644 --- a/src/libstd/sys/unix/condvar.rs +++ b/src/libstd/sys/unix/condvar.rs @@ -8,9 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[cfg(stage0)] -use prelude::v1::*; - use cell::UnsafeCell; use libc; use ptr; diff --git a/src/libstd/sys/unix/ext/fs.rs b/src/libstd/sys/unix/ext/fs.rs index dca7f6e829f..9bcd62dbdd1 100644 --- a/src/libstd/sys/unix/ext/fs.rs +++ b/src/libstd/sys/unix/ext/fs.rs @@ -12,9 +12,6 @@ #![stable(feature = "rust1", since = "1.0.0")] -#[cfg(stage0)] -use prelude::v1::*; - use fs::{self, Permissions, OpenOptions}; use io; use libc; diff --git a/src/libstd/sys/unix/ext/process.rs b/src/libstd/sys/unix/ext/process.rs index e984c577935..4ff6daf84c1 100644 --- a/src/libstd/sys/unix/ext/process.rs +++ b/src/libstd/sys/unix/ext/process.rs @@ -14,8 +14,6 @@ use os::unix::raw::{uid_t, gid_t}; use os::unix::io::{FromRawFd, RawFd, AsRawFd, IntoRawFd}; -#[cfg(stage0)] -use prelude::v1::*; use process; use sys; use sys_common::{AsInnerMut, AsInner, FromInner, IntoInner}; diff --git a/src/libstd/sys/unix/fd.rs b/src/libstd/sys/unix/fd.rs index bdbe120f79d..4ac498f77ce 100644 --- a/src/libstd/sys/unix/fd.rs +++ b/src/libstd/sys/unix/fd.rs @@ -8,9 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[cfg(stage0)] -use core::prelude::v1::*; - use io; use libc::{self, c_int, size_t, c_void}; use mem; diff --git a/src/libstd/sys/unix/fs.rs b/src/libstd/sys/unix/fs.rs index e671b2c8e0d..922a213f9c2 100644 --- a/src/libstd/sys/unix/fs.rs +++ b/src/libstd/sys/unix/fs.rs @@ -8,8 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[cfg(stage0)] -use core::prelude::v1::*; use io::prelude::*; use os::unix::prelude::*; diff --git a/src/libstd/sys/unix/mod.rs b/src/libstd/sys/unix/mod.rs index 85dc8752443..2efca0257f3 100644 --- a/src/libstd/sys/unix/mod.rs +++ b/src/libstd/sys/unix/mod.rs @@ -11,9 +11,6 @@ #![allow(missing_docs)] #![allow(non_camel_case_types)] -#[cfg(stage0)] -use prelude::v1::*; - use io::{self, ErrorKind}; use libc; use num::One; diff --git a/src/libstd/sys/unix/mutex.rs b/src/libstd/sys/unix/mutex.rs index a6132b37a66..e4c231ff971 100644 --- a/src/libstd/sys/unix/mutex.rs +++ b/src/libstd/sys/unix/mutex.rs @@ -8,9 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[cfg(stage0)] -use prelude::v1::*; - use cell::UnsafeCell; use sys::sync as ffi; use mem; diff --git a/src/libstd/sys/unix/os_str.rs b/src/libstd/sys/unix/os_str.rs index e21d88676e7..f0f08a72ed8 100644 --- a/src/libstd/sys/unix/os_str.rs +++ b/src/libstd/sys/unix/os_str.rs @@ -11,9 +11,6 @@ /// The underlying OsString/OsStr implementation on Unix systems: just /// a `Vec<u8>`/`[u8]`. -#[cfg(stage0)] -use core::prelude::v1::*; - use borrow::Cow; use fmt::{self, Debug}; use vec::Vec; diff --git a/src/libstd/sys/unix/pipe.rs b/src/libstd/sys/unix/pipe.rs index 2abd74bea1b..5c29c4c0811 100644 --- a/src/libstd/sys/unix/pipe.rs +++ b/src/libstd/sys/unix/pipe.rs @@ -8,9 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[cfg(stage0)] -use prelude::v1::*; - use sys::fd::FileDesc; use io; use libc; diff --git a/src/libstd/sys/unix/rwlock.rs b/src/libstd/sys/unix/rwlock.rs index 50b4907e6ca..788bff62430 100644 --- a/src/libstd/sys/unix/rwlock.rs +++ b/src/libstd/sys/unix/rwlock.rs @@ -8,9 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[cfg(stage0)] -use prelude::v1::*; - use libc; use cell::UnsafeCell; use sys::sync as ffi; diff --git a/src/libstd/sys/unix/stack_overflow.rs b/src/libstd/sys/unix/stack_overflow.rs index 4e4cf2b0ed1..1aa75fa18b7 100644 --- a/src/libstd/sys/unix/stack_overflow.rs +++ b/src/libstd/sys/unix/stack_overflow.rs @@ -8,9 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[cfg(stage0)] -use core::prelude::v1::*; - use libc; use self::imp::{make_handler, drop_handler}; diff --git a/src/libstd/sys/unix/stdio.rs b/src/libstd/sys/unix/stdio.rs index 8542c660c26..c87800a1498 100644 --- a/src/libstd/sys/unix/stdio.rs +++ b/src/libstd/sys/unix/stdio.rs @@ -8,9 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[cfg(stage0)] -use prelude::v1::*; - use io; use libc; use sys::fd::FileDesc; diff --git a/src/libstd/sys/unix/thread.rs b/src/libstd/sys/unix/thread.rs index fc0bb81f9a8..8d59461f1e4 100644 --- a/src/libstd/sys/unix/thread.rs +++ b/src/libstd/sys/unix/thread.rs @@ -163,9 +163,6 @@ impl Drop for Thread { not(target_os = "netbsd"), not(target_os = "openbsd")))] pub mod guard { - #[cfg(stage0)] - use prelude::v1::*; - pub unsafe fn current() -> Option<usize> { None } pub unsafe fn init() -> Option<usize> { None } } diff --git a/src/libstd/sys/unix/thread_local.rs b/src/libstd/sys/unix/thread_local.rs index 5626446b31c..c375788fdc1 100644 --- a/src/libstd/sys/unix/thread_local.rs +++ b/src/libstd/sys/unix/thread_local.rs @@ -10,8 +10,6 @@ #![allow(dead_code)] // sys isn't exported yet -#[cfg(stage0)] -use prelude::v1::*; use libc::c_int; pub type Key = pthread_key_t; diff --git a/src/libstd/sys/windows/backtrace.rs b/src/libstd/sys/windows/backtrace.rs index d84513c5f95..7078ee92085 100644 --- a/src/libstd/sys/windows/backtrace.rs +++ b/src/libstd/sys/windows/backtrace.rs @@ -24,8 +24,6 @@ #![allow(dead_code)] -#[cfg(stage0)] -use prelude::v1::*; use io::prelude::*; use dynamic_lib::DynamicLibrary; diff --git a/src/libstd/sys/windows/condvar.rs b/src/libstd/sys/windows/condvar.rs index f3edcfd420c..ac76479d7db 100644 --- a/src/libstd/sys/windows/condvar.rs +++ b/src/libstd/sys/windows/condvar.rs @@ -8,9 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[cfg(stage0)] -use prelude::v1::*; - use cell::UnsafeCell; use libc::{self, DWORD}; use sys::c; diff --git a/src/libstd/sys/windows/ext/fs.rs b/src/libstd/sys/windows/ext/fs.rs index e15d1f0ec15..66f42db42cf 100644 --- a/src/libstd/sys/windows/ext/fs.rs +++ b/src/libstd/sys/windows/ext/fs.rs @@ -12,9 +12,6 @@ #![stable(feature = "rust1", since = "1.0.0")] -#[cfg(stage0)] -use prelude::v1::*; - use fs::{OpenOptions, Metadata}; use io; use path::Path; diff --git a/src/libstd/sys/windows/fs.rs b/src/libstd/sys/windows/fs.rs index 8d81d6576ff..b8c3f1e7b35 100644 --- a/src/libstd/sys/windows/fs.rs +++ b/src/libstd/sys/windows/fs.rs @@ -8,8 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[cfg(stage0)] -use core::prelude::v1::*; use io::prelude::*; use os::windows::prelude::*; diff --git a/src/libstd/sys/windows/handle.rs b/src/libstd/sys/windows/handle.rs index 91fe131c251..a9e9b0e2520 100644 --- a/src/libstd/sys/windows/handle.rs +++ b/src/libstd/sys/windows/handle.rs @@ -8,9 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[cfg(stage0)] -use prelude::v1::*; - use io::ErrorKind; use io; use libc::funcs::extra::kernel32::{GetCurrentProcess, DuplicateHandle}; diff --git a/src/libstd/sys/windows/net.rs b/src/libstd/sys/windows/net.rs index f2aca8d1a6e..02c5bc1f0ab 100644 --- a/src/libstd/sys/windows/net.rs +++ b/src/libstd/sys/windows/net.rs @@ -8,9 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[cfg(stage0)] -use prelude::v1::*; - use io; use libc::consts::os::extra::INVALID_SOCKET; use libc::{self, c_int, c_void}; diff --git a/src/libstd/sys/windows/pipe.rs b/src/libstd/sys/windows/pipe.rs index 4044c429d49..7e286b91f4a 100644 --- a/src/libstd/sys/windows/pipe.rs +++ b/src/libstd/sys/windows/pipe.rs @@ -8,9 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[cfg(stage0)] -use prelude::v1::*; - use io; use libc; use sys::cvt; diff --git a/src/libstd/sys/windows/rwlock.rs b/src/libstd/sys/windows/rwlock.rs index 010ffe76fba..3e81ebfcedf 100644 --- a/src/libstd/sys/windows/rwlock.rs +++ b/src/libstd/sys/windows/rwlock.rs @@ -8,9 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[cfg(stage0)] -use prelude::v1::*; - use cell::UnsafeCell; use sys::c; diff --git a/src/libstd/sys/windows/thread.rs b/src/libstd/sys/windows/thread.rs index a9d094375b2..cf1b3ebddb9 100644 --- a/src/libstd/sys/windows/thread.rs +++ b/src/libstd/sys/windows/thread.rs @@ -81,9 +81,6 @@ impl Thread { } pub mod guard { - #[cfg(stage0)] - use prelude::v1::*; - pub unsafe fn current() -> Option<usize> { None } pub unsafe fn init() -> Option<usize> { None } } diff --git a/src/libstd/thread/local.rs b/src/libstd/thread/local.rs index 0615033736e..3bf170b5fe2 100644 --- a/src/libstd/thread/local.rs +++ b/src/libstd/thread/local.rs @@ -12,9 +12,6 @@ #![unstable(feature = "thread_local_internals")] -#[cfg(stage0)] -use prelude::v1::*; - use cell::UnsafeCell; // Sure wish we had macro hygiene, no? @@ -272,9 +269,6 @@ impl<T: 'static> LocalKey<T> { not(no_elf_tls)))] #[doc(hidden)] mod imp { - #[cfg(stage0)] - use prelude::v1::*; - use cell::{Cell, UnsafeCell}; use intrinsics; use ptr; diff --git a/src/libstd/thread/scoped_tls.rs b/src/libstd/thread/scoped_tls.rs index 1ea33a01791..303ab0f9f01 100644 --- a/src/libstd/thread/scoped_tls.rs +++ b/src/libstd/thread/scoped_tls.rs @@ -42,9 +42,6 @@ #![unstable(feature = "thread_local_internals")] -#[cfg(stage0)] -use prelude::v1::*; - #[doc(hidden)] pub use self::imp::KeyInner as __KeyInner; @@ -250,9 +247,6 @@ mod imp { no_elf_tls))] #[doc(hidden)] mod imp { - #[cfg(stage0)] - use prelude::v1::*; - use cell::Cell; use marker; use sys_common::thread_local::StaticKey as OsStaticKey; @@ -280,8 +274,6 @@ mod imp { #[cfg(test)] mod tests { use cell::Cell; - #[cfg(stage0)] - use prelude::v1::*; scoped_thread_local!(static FOO: u32); diff --git a/src/libstd/time/duration.rs b/src/libstd/time/duration.rs index 5270f9e6180..ba9c3157b02 100644 --- a/src/libstd/time/duration.rs +++ b/src/libstd/time/duration.rs @@ -8,9 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[cfg(stage0)] -use prelude::v1::*; - use ops::{Add, Sub, Mul, Div}; use sys::time::SteadyTime; |
