@@ -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/// # #[cfg(miri)] fn main() {}
4544/// # #[cfg(not(miri))]
4645/// # fn main() -> std::io::Result<()> {
@@ -67,19 +66,19 @@ use crate::sys::anonymous_pipe::{AnonPipe, pipe as pipe_inner};
6766/// ```
6867/// [changes]: io#platform-specific-behavior
6968/// [man page]: https://man7.org/linux/man-pages/man7/pipe.7.html
70- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
69+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
7170#[ inline]
7271pub fn pipe ( ) -> io:: Result < ( PipeReader , PipeWriter ) > {
7372 pipe_inner ( ) . map ( |( reader, writer) | ( PipeReader ( reader) , PipeWriter ( writer) ) )
7473}
7574
7675/// Read end of an anonymous pipe.
77- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
76+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
7877#[ derive( Debug ) ]
7978pub struct PipeReader ( pub ( crate ) AnonPipe ) ;
8079
8180/// Write end of an anonymous pipe.
82- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
81+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
8382#[ derive( Debug ) ]
8483pub struct PipeWriter ( pub ( crate ) AnonPipe ) ;
8584
@@ -89,7 +88,6 @@ impl PipeReader {
8988 /// # Examples
9089 ///
9190 /// ```no_run
92- /// #![feature(anonymous_pipe)]
9391 /// # #[cfg(miri)] fn main() {}
9492 /// # #[cfg(not(miri))]
9593 /// # fn main() -> std::io::Result<()> {
@@ -137,7 +135,7 @@ impl PipeReader {
137135 /// # Ok(())
138136 /// # }
139137 /// ```
140- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
138+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
141139 pub fn try_clone ( & self ) -> io:: Result < Self > {
142140 self . 0 . try_clone ( ) . map ( Self )
143141 }
@@ -149,7 +147,6 @@ impl PipeWriter {
149147 /// # Examples
150148 ///
151149 /// ```no_run
152- /// #![feature(anonymous_pipe)]
153150 /// # #[cfg(miri)] fn main() {}
154151 /// # #[cfg(not(miri))]
155152 /// # fn main() -> std::io::Result<()> {
@@ -177,13 +174,13 @@ impl PipeWriter {
177174 /// # Ok(())
178175 /// # }
179176 /// ```
180- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
177+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
181178 pub fn try_clone ( & self ) -> io:: Result < Self > {
182179 self . 0 . try_clone ( ) . map ( Self )
183180 }
184181}
185182
186- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
183+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
187184impl io:: Read for & PipeReader {
188185 fn read ( & mut self , buf : & mut [ u8 ] ) -> io:: Result < usize > {
189186 self . 0 . read ( buf)
@@ -203,7 +200,7 @@ impl io::Read for &PipeReader {
203200 }
204201}
205202
206- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
203+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
207204impl io:: Read for PipeReader {
208205 fn read ( & mut self , buf : & mut [ u8 ] ) -> io:: Result < usize > {
209206 self . 0 . read ( buf)
@@ -223,7 +220,7 @@ impl io::Read for PipeReader {
223220 }
224221}
225222
226- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
223+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
227224impl io:: Write for & PipeWriter {
228225 fn write ( & mut self , buf : & [ u8 ] ) -> io:: Result < usize > {
229226 self . 0 . write ( buf)
@@ -241,7 +238,7 @@ impl io::Write for &PipeWriter {
241238 }
242239}
243240
244- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
241+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
245242impl io:: Write for PipeWriter {
246243 fn write ( & mut self , buf : & [ u8 ] ) -> io:: Result < usize > {
247244 self . 0 . write ( buf)
0 commit comments