diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-03-17 13:33:26 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-03-20 20:07:19 -0700 |
| commit | 212e03181e422f569b6426bc08b713a9efc0d0eb (patch) | |
| tree | 4ab0963cf9b9a231d092636782703117c8c3fc6d /src/libstd/old_io/pipe.rs | |
| parent | 68d69415637186755482d2584e6ba82b67bc1d89 (diff) | |
| download | rust-212e03181e422f569b6426bc08b713a9efc0d0eb.tar.gz rust-212e03181e422f569b6426bc08b713a9efc0d0eb.zip | |
std: Remove old_io/old_path from the prelude
This commit removes the reexports of `old_io` traits as well as `old_path` types and traits from the prelude. This functionality is now all deprecated and needs to be removed to make way for other functionality like `Seek` in the `std::io` module (currently reexported as `NewSeek` in the io prelude). Closes #23377 Closes #23378
Diffstat (limited to 'src/libstd/old_io/pipe.rs')
| -rw-r--r-- | src/libstd/old_io/pipe.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstd/old_io/pipe.rs b/src/libstd/old_io/pipe.rs index b78c8acb190..b2b28453c89 100644 --- a/src/libstd/old_io/pipe.rs +++ b/src/libstd/old_io/pipe.rs @@ -17,7 +17,7 @@ use prelude::v1::*; -use old_io::IoResult; +use old_io::{IoResult, Reader, Writer}; use libc; use sync::Arc; @@ -49,7 +49,7 @@ impl PipeStream { /// # #![allow(unused_must_use)] /// extern crate libc; /// - /// use std::old_io::pipe::PipeStream; + /// use std::old_io::*; /// /// fn main() { /// let mut pipe = PipeStream::open(libc::STDERR_FILENO); @@ -114,6 +114,7 @@ impl Writer for PipeStream { mod test { use prelude::v1::*; + use old_io::{Writer, Reader}; use sync::mpsc::channel; use thread; |
