Skip to content

Commit a65cba3

Browse files
authored
Update unix.rs
1 parent fbf3bdc commit a65cba3

File tree

1 file changed

+14
-14
lines changed
  • library/std/src/sys/anonymous_pipe

1 file changed

+14
-14
lines changed

library/std/src/sys/anonymous_pipe/unix.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,88 +12,88 @@ pub fn pipe() -> io::Result<(AnonPipe, AnonPipe)> {
1212
anon_pipe().map(|(rx, wx)| (rx.into_inner(), wx.into_inner()))
1313
}
1414

15-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
15+
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
1616
impl AsFd for PipeReader {
1717
fn as_fd(&self) -> BorrowedFd<'_> {
1818
self.0.as_fd()
1919
}
2020
}
21-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
21+
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
2222
impl AsRawFd for PipeReader {
2323
fn as_raw_fd(&self) -> RawFd {
2424
self.0.as_raw_fd()
2525
}
2626
}
27-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
27+
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
2828
impl From<PipeReader> for OwnedFd {
2929
fn from(pipe: PipeReader) -> Self {
3030
FileDesc::into_inner(pipe.0)
3131
}
3232
}
33-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
33+
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
3434
impl FromRawFd for PipeReader {
3535
unsafe fn from_raw_fd(raw_fd: RawFd) -> Self {
3636
unsafe { Self(FileDesc::from_raw_fd(raw_fd)) }
3737
}
3838
}
39-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
39+
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
4040
impl IntoRawFd for PipeReader {
4141
fn into_raw_fd(self) -> RawFd {
4242
self.0.into_raw_fd()
4343
}
4444
}
45-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
45+
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
4646
impl From<PipeReader> for Stdio {
4747
fn from(pipe: PipeReader) -> Self {
4848
Self::from(OwnedFd::from(pipe))
4949
}
5050
}
5151

52-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
52+
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
5353
impl AsFd for PipeWriter {
5454
fn as_fd(&self) -> BorrowedFd<'_> {
5555
self.0.as_fd()
5656
}
5757
}
58-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
58+
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
5959
impl AsRawFd for PipeWriter {
6060
fn as_raw_fd(&self) -> RawFd {
6161
self.0.as_raw_fd()
6262
}
6363
}
64-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
64+
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
6565
impl From<PipeWriter> for OwnedFd {
6666
fn from(pipe: PipeWriter) -> Self {
6767
FileDesc::into_inner(pipe.0)
6868
}
6969
}
70-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
70+
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
7171
impl FromRawFd for PipeWriter {
7272
unsafe fn from_raw_fd(raw_fd: RawFd) -> Self {
7373
unsafe { Self(FileDesc::from_raw_fd(raw_fd)) }
7474
}
7575
}
76-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
76+
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
7777
impl IntoRawFd for PipeWriter {
7878
fn into_raw_fd(self) -> RawFd {
7979
self.0.into_raw_fd()
8080
}
8181
}
82-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
82+
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
8383
impl From<PipeWriter> for Stdio {
8484
fn from(pipe: PipeWriter) -> Self {
8585
Self::from(OwnedFd::from(pipe))
8686
}
8787
}
8888

89-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
89+
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
9090
impl From<OwnedFd> for PipeReader {
9191
fn from(owned_fd: OwnedFd) -> Self {
9292
Self(FileDesc::from_inner(owned_fd))
9393
}
9494
}
9595

96-
#[unstable(feature = "anonymous_pipe", issue = "127154")]
96+
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
9797
impl From<OwnedFd> for PipeWriter {
9898
fn from(owned_fd: OwnedFd) -> Self {
9999
Self(FileDesc::from_inner(owned_fd))

0 commit comments

Comments
 (0)