@@ -40,7 +40,6 @@ use crate::sys::anonymous_pipe::{AnonPipe, pipe as pipe_inner};
40
40
/// # Examples
41
41
///
42
42
/// ```no_run
43
- /// #![feature(anonymous_pipe)]
44
43
/// # #[cfg(miri)] fn main() {}
45
44
/// # #[cfg(not(miri))]
46
45
/// # fn main() -> std::io::Result<()> {
@@ -67,19 +66,19 @@ use crate::sys::anonymous_pipe::{AnonPipe, pipe as pipe_inner};
67
66
/// ```
68
67
/// [changes]: io#platform-specific-behavior
69
68
/// [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 " ) ]
71
70
#[ inline]
72
71
pub fn pipe ( ) -> io:: Result < ( PipeReader , PipeWriter ) > {
73
72
pipe_inner ( ) . map ( |( reader, writer) | ( PipeReader ( reader) , PipeWriter ( writer) ) )
74
73
}
75
74
76
75
/// Read end of an anonymous pipe.
77
- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
76
+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
78
77
#[ derive( Debug ) ]
79
78
pub struct PipeReader ( pub ( crate ) AnonPipe ) ;
80
79
81
80
/// Write end of an anonymous pipe.
82
- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
81
+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
83
82
#[ derive( Debug ) ]
84
83
pub struct PipeWriter ( pub ( crate ) AnonPipe ) ;
85
84
@@ -89,7 +88,6 @@ impl PipeReader {
89
88
/// # Examples
90
89
///
91
90
/// ```no_run
92
- /// #![feature(anonymous_pipe)]
93
91
/// # #[cfg(miri)] fn main() {}
94
92
/// # #[cfg(not(miri))]
95
93
/// # fn main() -> std::io::Result<()> {
@@ -137,7 +135,7 @@ impl PipeReader {
137
135
/// # Ok(())
138
136
/// # }
139
137
/// ```
140
- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
138
+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
141
139
pub fn try_clone ( & self ) -> io:: Result < Self > {
142
140
self . 0 . try_clone ( ) . map ( Self )
143
141
}
@@ -149,7 +147,6 @@ impl PipeWriter {
149
147
/// # Examples
150
148
///
151
149
/// ```no_run
152
- /// #![feature(anonymous_pipe)]
153
150
/// # #[cfg(miri)] fn main() {}
154
151
/// # #[cfg(not(miri))]
155
152
/// # fn main() -> std::io::Result<()> {
@@ -177,13 +174,13 @@ impl PipeWriter {
177
174
/// # Ok(())
178
175
/// # }
179
176
/// ```
180
- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
177
+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
181
178
pub fn try_clone ( & self ) -> io:: Result < Self > {
182
179
self . 0 . try_clone ( ) . map ( Self )
183
180
}
184
181
}
185
182
186
- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
183
+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
187
184
impl io:: Read for & PipeReader {
188
185
fn read ( & mut self , buf : & mut [ u8 ] ) -> io:: Result < usize > {
189
186
self . 0 . read ( buf)
@@ -203,7 +200,7 @@ impl io::Read for &PipeReader {
203
200
}
204
201
}
205
202
206
- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
203
+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
207
204
impl io:: Read for PipeReader {
208
205
fn read ( & mut self , buf : & mut [ u8 ] ) -> io:: Result < usize > {
209
206
self . 0 . read ( buf)
@@ -223,7 +220,7 @@ impl io::Read for PipeReader {
223
220
}
224
221
}
225
222
226
- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
223
+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
227
224
impl io:: Write for & PipeWriter {
228
225
fn write ( & mut self , buf : & [ u8 ] ) -> io:: Result < usize > {
229
226
self . 0 . write ( buf)
@@ -241,7 +238,7 @@ impl io::Write for &PipeWriter {
241
238
}
242
239
}
243
240
244
- #[ unstable ( feature = "anonymous_pipe" , issue = "127154 " ) ]
241
+ #[ stable ( feature = "anonymous_pipe" , since = "CURRENT_RUSTC_VERSION " ) ]
245
242
impl io:: Write for PipeWriter {
246
243
fn write ( & mut self , buf : & [ u8 ] ) -> io:: Result < usize > {
247
244
self . 0 . write ( buf)
0 commit comments