Rename std::io::net::unix to std::io::net::pipe.

Renamed as we may support pipes for other platforms.

Closes #12093

[breaking-change]
This commit is contained in:
Jonas Hietala 2014-09-16 10:10:56 +02:00
parent 1f5ee97184
commit 04f4bb4290
3 changed files with 4 additions and 5 deletions

View file

@ -19,8 +19,7 @@ pub mod addrinfo;
pub mod tcp; pub mod tcp;
pub mod udp; pub mod udp;
pub mod ip; pub mod ip;
// FIXME(#12093) - this should not be called unix pub mod pipe;
pub mod unix;
fn to_rtio(ip: IpAddr) -> rtio::IpAddr { fn to_rtio(ip: IpAddr) -> rtio::IpAddr {
match ip { match ip {

View file

@ -46,7 +46,7 @@ impl UnixStream {
/// ///
/// ```rust /// ```rust
/// # #![allow(unused_must_use)] /// # #![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 server = Path::new("path/to/my/socket");
/// let mut stream = UnixStream::connect(&server); /// let mut stream = UnixStream::connect(&server);
@ -164,7 +164,7 @@ impl UnixListener {
/// # fn main() {} /// # fn main() {}
/// # fn foo() { /// # fn foo() {
/// # #![allow(unused_must_use)] /// # #![allow(unused_must_use)]
/// use std::io::net::unix::UnixListener; /// use std::io::net::pipe::UnixListener;
/// use std::io::{Listener, Acceptor}; /// use std::io::{Listener, Acceptor};
/// ///
/// let server = Path::new("/path/to/my/socket"); /// let server = Path::new("/path/to/my/socket");

View file

@ -34,7 +34,7 @@ macro_rules! iotest (
use io::net::ip::*; use io::net::ip::*;
use io::net::udp::*; use io::net::udp::*;
#[cfg(unix)] #[cfg(unix)]
use io::net::unix::*; use io::net::pipe::*;
use io::timer::*; use io::timer::*;
use io::process::*; use io::process::*;
use rt::running_on_valgrind; use rt::running_on_valgrind;