@@ -32,7 +32,6 @@ use crate::sys::anonymous_pipe::{AnonPipe, pipe as pipe_inner};
3232/// # Examples
3333///
3434/// ```no_run
35- /// #![feature(anonymous_pipe)]
3635/// use std::process::Command;
3736/// use std::io::{pipe, Read, Write};
3837///
@@ -56,19 +55,19 @@ use crate::sys::anonymous_pipe::{AnonPipe, pipe as pipe_inner};
5655/// ```
5756/// [changes]: io#platform-specific-behavior
5857/// [man page]: https://man7.org/linux/man-pages/man7/pipe.7.html
59- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
58+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
6059#[ inline]
6160pub fn pipe ( ) -> io:: Result < ( PipeReader , PipeWriter ) > {
6261 pipe_inner ( ) . map ( |( reader, writer) | ( PipeReader ( reader) , PipeWriter ( writer) ) )
6362}
6463
6564/// Read end of the anonymous pipe.
66- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
65+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
6766#[ derive( Debug ) ]
6867pub struct PipeReader ( pub ( crate ) AnonPipe ) ;
6968
7069/// Write end of the anonymous pipe.
71- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
70+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
7271#[ derive( Debug ) ]
7372pub struct PipeWriter ( pub ( crate ) AnonPipe ) ;
7473
@@ -78,7 +77,6 @@ impl PipeReader {
7877 /// # Examples
7978 ///
8079 /// ```no_run
81- /// #![feature(anonymous_pipe)]
8280 /// use std::fs;
8381 /// use std::io::{pipe, Write};
8482 /// use std::process::Command;
@@ -123,7 +121,7 @@ impl PipeReader {
123121 /// assert_eq!(xs, "x".repeat(NUM_PROC.into()));
124122 /// # Ok::<(), std::io::Error>(())
125123 /// ```
126- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
124+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
127125 pub fn try_clone ( & self ) -> io:: Result < Self > {
128126 self . 0 . try_clone ( ) . map ( Self )
129127 }
@@ -135,7 +133,6 @@ impl PipeWriter {
135133 /// # Examples
136134 ///
137135 /// ```no_run
138- /// #![feature(anonymous_pipe)]
139136 /// use std::process::Command;
140137 /// use std::io::{pipe, Read};
141138 ///
@@ -160,13 +157,13 @@ impl PipeWriter {
160157 /// peer.wait()?;
161158 /// # Ok::<(), std::io::Error>(())
162159 /// ```
163- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
160+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
164161 pub fn try_clone ( & self ) -> io:: Result < Self > {
165162 self . 0 . try_clone ( ) . map ( Self )
166163 }
167164}
168165
169- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
166+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
170167impl io:: Read for & PipeReader {
171168 fn read ( & mut self , buf : & mut [ u8 ] ) -> io:: Result < usize > {
172169 self . 0 . read ( buf)
@@ -186,7 +183,7 @@ impl io::Read for &PipeReader {
186183 }
187184}
188185
189- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
186+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
190187impl io:: Read for PipeReader {
191188 fn read ( & mut self , buf : & mut [ u8 ] ) -> io:: Result < usize > {
192189 self . 0 . read ( buf)
@@ -206,7 +203,7 @@ impl io::Read for PipeReader {
206203 }
207204}
208205
209- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
206+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
210207impl io:: Write for & PipeWriter {
211208 fn write ( & mut self , buf : & [ u8 ] ) -> io:: Result < usize > {
212209 self . 0 . write ( buf)
@@ -224,7 +221,7 @@ impl io::Write for &PipeWriter {
224221 }
225222}
226223
227- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
224+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
228225impl io:: Write for PipeWriter {
229226 fn write ( & mut self , buf : & [ u8 ] ) -> io:: Result < usize > {
230227 self . 0 . write ( buf)
0 commit comments