diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-08-22 19:47:38 +0000 |
|---|---|---|
| committer | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-08-24 22:12:48 +0000 |
| commit | 9a2c8783d91624261317316f996d8d2d09b7b6a4 (patch) | |
| tree | cb3ba15345b67689d4cbb5e62c441960611e5de1 /src/libstd/sys/unix | |
| parent | e2ad3be1787cdd36d52fcd2355225156f5460dc4 (diff) | |
| download | rust-9a2c8783d91624261317316f996d8d2d09b7b6a4.tar.gz rust-9a2c8783d91624261317316f996d8d2d09b7b6a4.zip | |
Use `#[prelude_import]` in `libstd`.
Diffstat (limited to 'src/libstd/sys/unix')
| -rw-r--r-- | src/libstd/sys/unix/ext/ffi.rs | 1 | ||||
| -rw-r--r-- | src/libstd/sys/unix/ext/net.rs | 2 | ||||
| -rw-r--r-- | src/libstd/sys/unix/ext/process.rs | 2 | ||||
| -rw-r--r-- | src/libstd/sys/unix/fd.rs | 2 | ||||
| -rw-r--r-- | src/libstd/sys/unix/fs.rs | 2 | ||||
| -rw-r--r-- | src/libstd/sys/unix/net.rs | 2 | ||||
| -rw-r--r-- | src/libstd/sys/unix/os.rs | 1 | ||||
| -rw-r--r-- | src/libstd/sys/unix/os_str.rs | 2 | ||||
| -rw-r--r-- | src/libstd/sys/unix/pipe.rs | 2 | ||||
| -rw-r--r-- | src/libstd/sys/unix/process.rs | 2 | ||||
| -rw-r--r-- | src/libstd/sys/unix/stdio.rs | 2 | ||||
| -rw-r--r-- | src/libstd/sys/unix/thread.rs | 4 |
12 files changed, 0 insertions, 24 deletions
diff --git a/src/libstd/sys/unix/ext/ffi.rs b/src/libstd/sys/unix/ext/ffi.rs index 825e74cabde..d59b4fc0b70 100644 --- a/src/libstd/sys/unix/ext/ffi.rs +++ b/src/libstd/sys/unix/ext/ffi.rs @@ -14,7 +14,6 @@ use ffi::{OsStr, OsString}; use mem; -use prelude::v1::*; use sys::os_str::Buf; use sys_common::{FromInner, IntoInner, AsInner}; diff --git a/src/libstd/sys/unix/ext/net.rs b/src/libstd/sys/unix/ext/net.rs index a4564b9543b..3f93fce1935 100644 --- a/src/libstd/sys/unix/ext/net.rs +++ b/src/libstd/sys/unix/ext/net.rs @@ -14,7 +14,6 @@ use libc; -use prelude::v1::*; use ascii; use ffi::OsStr; use fmt; @@ -789,7 +788,6 @@ impl IntoRawFd for UnixDatagram { #[cfg(test)] mod test { - use prelude::v1::*; use thread; use io; use io::prelude::*; diff --git a/src/libstd/sys/unix/ext/process.rs b/src/libstd/sys/unix/ext/process.rs index dd70ba2e490..5bd92f2eb57 100644 --- a/src/libstd/sys/unix/ext/process.rs +++ b/src/libstd/sys/unix/ext/process.rs @@ -12,8 +12,6 @@ #![stable(feature = "rust1", since = "1.0.0")] -use prelude::v1::*; - use io; use os::unix::io::{FromRawFd, RawFd, AsRawFd, IntoRawFd}; use process; diff --git a/src/libstd/sys/unix/fd.rs b/src/libstd/sys/unix/fd.rs index b99f4a2eacd..b2b1f16f20a 100644 --- a/src/libstd/sys/unix/fd.rs +++ b/src/libstd/sys/unix/fd.rs @@ -10,8 +10,6 @@ #![unstable(reason = "not public", issue = "0", feature = "fd")] -use prelude::v1::*; - use io::{self, Read}; 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 3b132744f70..e6fe3eb112a 100644 --- a/src/libstd/sys/unix/fs.rs +++ b/src/libstd/sys/unix/fs.rs @@ -8,7 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -use prelude::v1::*; use os::unix::prelude::*; use ffi::{CString, CStr, OsString, OsStr}; @@ -534,7 +533,6 @@ impl fmt::Debug for File { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { #[cfg(target_os = "linux")] fn get_path(fd: c_int) -> Option<PathBuf> { - use string::ToString; let mut p = PathBuf::from("/proc/self/fd"); p.push(&fd.to_string()); readlink(&p).ok() diff --git a/src/libstd/sys/unix/net.rs b/src/libstd/sys/unix/net.rs index 6f1b70acb60..3f77abd7f44 100644 --- a/src/libstd/sys/unix/net.rs +++ b/src/libstd/sys/unix/net.rs @@ -8,8 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -use prelude::v1::*; - use ffi::CStr; use io; use libc::{self, c_int, size_t, sockaddr, socklen_t}; diff --git a/src/libstd/sys/unix/os.rs b/src/libstd/sys/unix/os.rs index c29e87f91c9..e61804efd50 100644 --- a/src/libstd/sys/unix/os.rs +++ b/src/libstd/sys/unix/os.rs @@ -12,7 +12,6 @@ #![allow(unused_imports)] // lots of cfg code here -use prelude::v1::*; use os::unix::prelude::*; use error::Error as StdError; diff --git a/src/libstd/sys/unix/os_str.rs b/src/libstd/sys/unix/os_str.rs index d5eea5d1f3b..5a733c0cb87 100644 --- a/src/libstd/sys/unix/os_str.rs +++ b/src/libstd/sys/unix/os_str.rs @@ -13,9 +13,7 @@ use borrow::Cow; use fmt::{self, Debug}; -use vec::Vec; use str; -use string::String; use mem; use sys_common::{AsInner, IntoInner}; diff --git a/src/libstd/sys/unix/pipe.rs b/src/libstd/sys/unix/pipe.rs index 01059413338..ffe8032e460 100644 --- a/src/libstd/sys/unix/pipe.rs +++ b/src/libstd/sys/unix/pipe.rs @@ -8,8 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -use prelude::v1::*; - use cmp; use io; use libc::{self, c_int}; diff --git a/src/libstd/sys/unix/process.rs b/src/libstd/sys/unix/process.rs index d68867fb3d2..50014f51f6c 100644 --- a/src/libstd/sys/unix/process.rs +++ b/src/libstd/sys/unix/process.rs @@ -8,7 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -use prelude::v1::*; use os::unix::prelude::*; use collections::hash_map::{HashMap, Entry}; @@ -593,7 +592,6 @@ impl Process { #[cfg(test)] mod tests { use super::*; - use prelude::v1::*; use ffi::OsStr; use mem; diff --git a/src/libstd/sys/unix/stdio.rs b/src/libstd/sys/unix/stdio.rs index 37d1d9a969e..972bdbc3818 100644 --- a/src/libstd/sys/unix/stdio.rs +++ b/src/libstd/sys/unix/stdio.rs @@ -8,8 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -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 75e10d25853..5db7086e427 100644 --- a/src/libstd/sys/unix/thread.rs +++ b/src/libstd/sys/unix/thread.rs @@ -8,8 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -use prelude::v1::*; - use alloc::boxed::FnBox; use cmp; use ffi::CStr; @@ -193,8 +191,6 @@ pub mod guard { target_os = "solaris"))] #[cfg_attr(test, allow(dead_code))] pub mod guard { - use prelude::v1::*; - use libc; use libc::mmap; use libc::{PROT_NONE, MAP_PRIVATE, MAP_ANON, MAP_FAILED, MAP_FIXED}; |
