Correct 'stable' attribute

This commit is contained in:
Ian Douglas Scott
2017-07-25 16:44:25 -07:00
parent 85ef570e00
commit e9c55d1f79
2 changed files with 6 additions and 6 deletions

View File

@@ -110,17 +110,17 @@ impl AsRawFd for net::UdpSocket {
}
}
#[stable(feature = "rust1", since = "1.0.0")]
#[stable(feature = "asraw_stdio", since = "1.21.0")]
impl AsRawFd for io::Stdin {
fn as_raw_fd(&self) -> RawFd { 0 }
}
#[stable(feature = "rust1", since = "1.0.0")]
#[stable(feature = "asraw_stdio", since = "1.21.0")]
impl AsRawFd for io::Stdout {
fn as_raw_fd(&self) -> RawFd { 1 }
}
#[stable(feature = "rust1", since = "1.0.0")]
#[stable(feature = "asraw_stdio", since = "1.21.0")]
impl AsRawFd for io::Stderr {
fn as_raw_fd(&self) -> RawFd { 2 }
}

View File

@@ -106,17 +106,17 @@ impl AsRawFd for net::UdpSocket {
fn as_raw_fd(&self) -> RawFd { *self.as_inner().socket().as_inner() }
}
#[stable(feature = "rust1", since = "1.0.0")]
#[stable(feature = "asraw_stdio", since = "1.21.0")]
impl AsRawFd for io::Stdin {
fn as_raw_fd(&self) -> RawFd { libc::STDIN_FILENO }
}
#[stable(feature = "rust1", since = "1.0.0")]
#[stable(feature = "asraw_stdio", since = "1.21.0")]
impl AsRawFd for io::Stdout {
fn as_raw_fd(&self) -> RawFd { libc::STDOUT_FILENO }
}
#[stable(feature = "rust1", since = "1.0.0")]
#[stable(feature = "asraw_stdio", since = "1.21.0")]
impl AsRawFd for io::Stderr {
fn as_raw_fd(&self) -> RawFd { libc::STDERR_FILENO }
}