From ea6f9f9c5529bb3f222ccf95c75bc54609cd99b7 Mon Sep 17 00:00:00 2001 From: jD91mZM2 Date: Tue, 3 Jul 2018 11:13:16 +0200 Subject: Remove stability attributes on private types and leftover docs --- src/libstd/sys/redox/ext/unixsocket.rs | 2 -- src/libstd/sys/unix/ext/unixsocket.rs | 16 ---------------- 2 files changed, 18 deletions(-) (limited to 'src/libstd/sys') diff --git a/src/libstd/sys/redox/ext/unixsocket.rs b/src/libstd/sys/redox/ext/unixsocket.rs index be37575145a..5f7b2df8992 100644 --- a/src/libstd/sys/redox/ext/unixsocket.rs +++ b/src/libstd/sys/redox/ext/unixsocket.rs @@ -8,8 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#![stable(feature = "unix_socket", since = "1.10.0")] - use fmt; use io::{self, Error, ErrorKind, Initializer}; use net::Shutdown; diff --git a/src/libstd/sys/unix/ext/unixsocket.rs b/src/libstd/sys/unix/ext/unixsocket.rs index 124555141a3..ad2d7019cb8 100644 --- a/src/libstd/sys/unix/ext/unixsocket.rs +++ b/src/libstd/sys/unix/ext/unixsocket.rs @@ -8,8 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#![stable(feature = "unix_socket", since = "1.10.0")] - //! Unix-specific networking functionality #[cfg(unix)] @@ -144,20 +142,6 @@ impl<'a> fmt::Display for AsciiEscaped<'a> { } } -/// A Unix stream socket. -/// -/// # Examples -/// -/// ```no_run -/// use std::os::unix::net::UnixStream; -/// use std::io::prelude::*; -/// -/// let mut stream = UnixStream::connect("/path/to/my/socket").unwrap(); -/// stream.write_all(b"hello world").unwrap(); -/// let mut response = String::new(); -/// stream.read_to_string(&mut response).unwrap(); -/// println!("{}", response); -/// ``` #[stable(feature = "unix_socket", since = "1.10.0")] pub struct UnixStream(Socket); -- cgit 1.4.1-3-g733a5