diff options
| author | bors <bors@rust-lang.org> | 2014-09-17 18:26:14 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-09-17 18:26:14 +0000 |
| commit | b88d1030e11410d64b8e6c16e3b8de8b4a8efbbd (patch) | |
| tree | 93ac76837a46746fa762fb29ff0dc7b824277122 /src/libstd | |
| parent | 4d2af38611cdeeb804659b5e0695ad2c251db51a (diff) | |
| parent | 3a54a4ee6bb9e0ab02c2556f029c288dda3c3de1 (diff) | |
| download | rust-b88d1030e11410d64b8e6c16e3b8de8b4a8efbbd.tar.gz rust-b88d1030e11410d64b8e6c16e3b8de8b4a8efbbd.zip | |
auto merge of #17343 : alexcrichton/rust/rollup, r=alexcrichton
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/io/net/mod.rs | 3 | ||||
| -rw-r--r-- | src/libstd/io/net/pipe.rs (renamed from src/libstd/io/net/unix.rs) | 4 | ||||
| -rw-r--r-- | src/libstd/io/test.rs | 2 | ||||
| -rw-r--r-- | src/libstd/macros.rs | 4 |
4 files changed, 6 insertions, 7 deletions
diff --git a/src/libstd/io/net/mod.rs b/src/libstd/io/net/mod.rs index 54af83462ee..4bd998d5ed9 100644 --- a/src/libstd/io/net/mod.rs +++ b/src/libstd/io/net/mod.rs @@ -19,8 +19,7 @@ pub mod addrinfo; pub mod tcp; pub mod udp; pub mod ip; -// FIXME(#12093) - this should not be called unix -pub mod unix; +pub mod pipe; fn to_rtio(ip: IpAddr) -> rtio::IpAddr { match ip { diff --git a/src/libstd/io/net/unix.rs b/src/libstd/io/net/pipe.rs index ea851d44531..bdd58b07d86 100644 --- a/src/libstd/io/net/unix.rs +++ b/src/libstd/io/net/pipe.rs @@ -46,7 +46,7 @@ impl UnixStream { /// /// ```rust /// # #![allow(unused_must_use)] - /// use std::io::net::unix::UnixStream; + /// use std::io::net::pipe::UnixStream; /// /// let server = Path::new("path/to/my/socket"); /// let mut stream = UnixStream::connect(&server); @@ -164,7 +164,7 @@ impl UnixListener { /// # fn main() {} /// # fn foo() { /// # #![allow(unused_must_use)] - /// use std::io::net::unix::UnixListener; + /// use std::io::net::pipe::UnixListener; /// use std::io::{Listener, Acceptor}; /// /// let server = Path::new("/path/to/my/socket"); diff --git a/src/libstd/io/test.rs b/src/libstd/io/test.rs index 78d1a2f485a..cfc5fb982b8 100644 --- a/src/libstd/io/test.rs +++ b/src/libstd/io/test.rs @@ -34,7 +34,7 @@ macro_rules! iotest ( use io::net::ip::*; use io::net::udp::*; #[cfg(unix)] - use io::net::unix::*; + use io::net::pipe::*; use io::timer::*; use io::process::*; use rt::running_on_valgrind; diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs index 0ebca006c4c..e1f2f43673f 100644 --- a/src/libstd/macros.rs +++ b/src/libstd/macros.rs @@ -434,8 +434,8 @@ pub mod builtin { /// # Example /// /// ```rust - /// let home: &'static str = env!("HOME"); - /// println!("the home directory at the time of compiling was: {}", home); + /// let path: &'static str = env!("PATH"); + /// println!("the $PATH variable at the time of compiling was: {}", path); /// ``` #[macro_export] macro_rules! env( ($name:expr) => ({ /* compiler built-in */ }) ) |
