@@ -32,7 +32,6 @@ use crate::sys::anonymous_pipe::{AnonPipe, pipe as pipe_inner};
32
32
/// # Examples
33
33
///
34
34
/// ```no_run
35
- /// #![feature(anonymous_pipe)]
36
35
/// use std::process::Command;
37
36
/// use std::io::{pipe, Read, Write};
38
37
///
@@ -56,19 +55,19 @@ use crate::sys::anonymous_pipe::{AnonPipe, pipe as pipe_inner};
56
55
/// ```
57
56
/// [changes]: io#platform-specific-behavior
58
57
/// [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 " ) ]
60
59
#[ inline]
61
60
pub fn pipe ( ) -> io:: Result < ( PipeReader , PipeWriter ) > {
62
61
pipe_inner ( ) . map ( |( reader, writer) | ( PipeReader ( reader) , PipeWriter ( writer) ) )
63
62
}
64
63
65
64
/// Read end of the anonymous pipe.
66
- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
65
+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
67
66
#[ derive( Debug ) ]
68
67
pub struct PipeReader ( pub ( crate ) AnonPipe ) ;
69
68
70
69
/// Write end of the anonymous pipe.
71
- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
70
+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
72
71
#[ derive( Debug ) ]
73
72
pub struct PipeWriter ( pub ( crate ) AnonPipe ) ;
74
73
@@ -78,7 +77,6 @@ impl PipeReader {
78
77
/// # Examples
79
78
///
80
79
/// ```no_run
81
- /// #![feature(anonymous_pipe)]
82
80
/// use std::fs;
83
81
/// use std::io::{pipe, Write};
84
82
/// use std::process::Command;
@@ -123,7 +121,7 @@ impl PipeReader {
123
121
/// assert_eq!(xs, "x".repeat(NUM_PROC.into()));
124
122
/// # Ok::<(), std::io::Error>(())
125
123
/// ```
126
- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
124
+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
127
125
pub fn try_clone ( & self ) -> io:: Result < Self > {
128
126
self . 0 . try_clone ( ) . map ( Self )
129
127
}
@@ -135,7 +133,6 @@ impl PipeWriter {
135
133
/// # Examples
136
134
///
137
135
/// ```no_run
138
- /// #![feature(anonymous_pipe)]
139
136
/// use std::process::Command;
140
137
/// use std::io::{pipe, Read};
141
138
///
@@ -160,13 +157,13 @@ impl PipeWriter {
160
157
/// peer.wait()?;
161
158
/// # Ok::<(), std::io::Error>(())
162
159
/// ```
163
- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
160
+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
164
161
pub fn try_clone ( & self ) -> io:: Result < Self > {
165
162
self . 0 . try_clone ( ) . map ( Self )
166
163
}
167
164
}
168
165
169
- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
166
+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
170
167
impl io:: Read for & PipeReader {
171
168
fn read ( & mut self , buf : & mut [ u8 ] ) -> io:: Result < usize > {
172
169
self . 0 . read ( buf)
@@ -186,7 +183,7 @@ impl io::Read for &PipeReader {
186
183
}
187
184
}
188
185
189
- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
186
+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
190
187
impl io:: Read for PipeReader {
191
188
fn read ( & mut self , buf : & mut [ u8 ] ) -> io:: Result < usize > {
192
189
self . 0 . read ( buf)
@@ -206,7 +203,7 @@ impl io::Read for PipeReader {
206
203
}
207
204
}
208
205
209
- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
206
+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
210
207
impl io:: Write for & PipeWriter {
211
208
fn write ( & mut self , buf : & [ u8 ] ) -> io:: Result < usize > {
212
209
self . 0 . write ( buf)
@@ -224,7 +221,7 @@ impl io::Write for &PipeWriter {
224
221
}
225
222
}
226
223
227
- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
224
+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
228
225
impl io:: Write for PipeWriter {
229
226
fn write ( & mut self , buf : & [ u8 ] ) -> io:: Result < usize > {
230
227
self . 0 . write ( buf)
0 commit comments