Skip to content

Commit 04f4bb4

Browse files
committed
Rename std::io::net::unix to std::io::net::pipe.
Renamed as we may support pipes for other platforms. Closes #12093 [breaking-change]
1 parent 1f5ee97 commit 04f4bb4

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/libstd/io/net/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ pub mod addrinfo;
1919
pub mod tcp;
2020
pub mod udp;
2121
pub mod ip;
22-
// FIXME(#12093) - this should not be called unix
23-
pub mod unix;
22+
pub mod pipe;
2423

2524
fn to_rtio(ip: IpAddr) -> rtio::IpAddr {
2625
match ip {

src/libstd/io/net/unix.rs renamed to src/libstd/io/net/pipe.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl UnixStream {
4646
///
4747
/// ```rust
4848
/// # #![allow(unused_must_use)]
49-
/// use std::io::net::unix::UnixStream;
49+
/// use std::io::net::pipe::UnixStream;
5050
///
5151
/// let server = Path::new("path/to/my/socket");
5252
/// let mut stream = UnixStream::connect(&server);
@@ -164,7 +164,7 @@ impl UnixListener {
164164
/// # fn main() {}
165165
/// # fn foo() {
166166
/// # #![allow(unused_must_use)]
167-
/// use std::io::net::unix::UnixListener;
167+
/// use std::io::net::pipe::UnixListener;
168168
/// use std::io::{Listener, Acceptor};
169169
///
170170
/// let server = Path::new("/path/to/my/socket");

src/libstd/io/test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ macro_rules! iotest (
3434
use io::net::ip::*;
3535
use io::net::udp::*;
3636
#[cfg(unix)]
37-
use io::net::unix::*;
37+
use io::net::pipe::*;
3838
use io::timer::*;
3939
use io::process::*;
4040
use rt::running_on_valgrind;

0 commit comments

Comments
 (0)