@@ -40,7 +40,6 @@ use crate::sys::anonymous_pipe::{AnonPipe, pipe as pipe_inner};
4040/// # Examples
4141///
4242/// ```no_run
43- /// #![feature(anonymous_pipe)]
4443/// use std::process::Command;
4544/// use std::io::{pipe, Read, Write};
4645///
@@ -64,19 +63,19 @@ use crate::sys::anonymous_pipe::{AnonPipe, pipe as pipe_inner};
6463/// ```
6564/// [changes]: io#platform-specific-behavior
6665/// [man page]: https://man7.org/linux/man-pages/man7/pipe.7.html
67- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
66+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
6867#[ inline]
6968pub fn pipe ( ) -> io:: Result < ( PipeReader , PipeWriter ) > {
7069 pipe_inner ( ) . map ( |( reader, writer) | ( PipeReader ( reader) , PipeWriter ( writer) ) )
7170}
7271
7372/// Read end of an anonymous pipe.
74- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
73+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
7574#[ derive( Debug ) ]
7675pub struct PipeReader ( pub ( crate ) AnonPipe ) ;
7776
7877/// Write end of an anonymous pipe.
79- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
78+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
8079#[ derive( Debug ) ]
8180pub struct PipeWriter ( pub ( crate ) AnonPipe ) ;
8281
@@ -86,7 +85,6 @@ impl PipeReader {
8685 /// # Examples
8786 ///
8887 /// ```no_run
89- /// #![feature(anonymous_pipe)]
9088 /// use std::fs;
9189 /// use std::io::{pipe, Write};
9290 /// use std::process::Command;
@@ -131,7 +129,7 @@ impl PipeReader {
131129 /// assert_eq!(xs, "x".repeat(NUM_PROC.into()));
132130 /// # Ok::<(), std::io::Error>(())
133131 /// ```
134- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
132+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
135133 pub fn try_clone ( & self ) -> io:: Result < Self > {
136134 self . 0 . try_clone ( ) . map ( Self )
137135 }
@@ -143,7 +141,6 @@ impl PipeWriter {
143141 /// # Examples
144142 ///
145143 /// ```no_run
146- /// #![feature(anonymous_pipe)]
147144 /// use std::process::Command;
148145 /// use std::io::{pipe, Read};
149146 ///
@@ -168,13 +165,13 @@ impl PipeWriter {
168165 /// peer.wait()?;
169166 /// # Ok::<(), std::io::Error>(())
170167 /// ```
171- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
168+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
172169 pub fn try_clone ( & self ) -> io:: Result < Self > {
173170 self . 0 . try_clone ( ) . map ( Self )
174171 }
175172}
176173
177- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
174+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
178175impl io:: Read for & PipeReader {
179176 fn read ( & mut self , buf : & mut [ u8 ] ) -> io:: Result < usize > {
180177 self . 0 . read ( buf)
@@ -194,7 +191,7 @@ impl io::Read for &PipeReader {
194191 }
195192}
196193
197- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
194+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
198195impl io:: Read for PipeReader {
199196 fn read ( & mut self , buf : & mut [ u8 ] ) -> io:: Result < usize > {
200197 self . 0 . read ( buf)
@@ -214,7 +211,7 @@ impl io::Read for PipeReader {
214211 }
215212}
216213
217- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
214+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
218215impl io:: Write for & PipeWriter {
219216 fn write ( & mut self , buf : & [ u8 ] ) -> io:: Result < usize > {
220217 self . 0 . write ( buf)
@@ -232,7 +229,7 @@ impl io::Write for &PipeWriter {
232229 }
233230}
234231
235- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
232+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
236233impl io:: Write for PipeWriter {
237234 fn write ( & mut self , buf : & [ u8 ] ) -> io:: Result < usize > {
238235 self . 0 . write ( buf)
0 commit comments