Skip to content

Commit f335bca

Browse files
authored
Rollup merge of #87175 - inquisitivecrystal:inner-error, r=kennytm
Stabilize `into_parts()` and `into_error()` This stabilizes `IntoInnerError`'s `into_parts()` and `into_error()` methods, currently gated behind the `io_into_inner_error_parts` feature. The FCP has [already completed.](#79704 (comment)) Closes #79704.
2 parents 2038fa5 + 803f79d commit f335bca

File tree

1 file changed

+2
-4
lines changed
  • library/std/src/io/buffered

1 file changed

+2
-4
lines changed

library/std/src/io/buffered/mod.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ impl<W> IntoInnerError<W> {
133133
///
134134
/// # Example
135135
/// ```
136-
/// #![feature(io_into_inner_error_parts)]
137136
/// use std::io::{BufWriter, ErrorKind, Write};
138137
///
139138
/// let mut not_enough_space = [0u8; 10];
@@ -143,7 +142,7 @@ impl<W> IntoInnerError<W> {
143142
/// let err = into_inner_err.into_error();
144143
/// assert_eq!(err.kind(), ErrorKind::WriteZero);
145144
/// ```
146-
#[unstable(feature = "io_into_inner_error_parts", issue = "79704")]
145+
#[stable(feature = "io_into_inner_error_parts", since = "1.55.0")]
147146
pub fn into_error(self) -> Error {
148147
self.1
149148
}
@@ -156,7 +155,6 @@ impl<W> IntoInnerError<W> {
156155
///
157156
/// # Example
158157
/// ```
159-
/// #![feature(io_into_inner_error_parts)]
160158
/// use std::io::{BufWriter, ErrorKind, Write};
161159
///
162160
/// let mut not_enough_space = [0u8; 10];
@@ -167,7 +165,7 @@ impl<W> IntoInnerError<W> {
167165
/// assert_eq!(err.kind(), ErrorKind::WriteZero);
168166
/// assert_eq!(recovered_writer.buffer(), b"t be actually written");
169167
/// ```
170-
#[unstable(feature = "io_into_inner_error_parts", issue = "79704")]
168+
#[stable(feature = "io_into_inner_error_parts", since = "1.55.0")]
171169
pub fn into_parts(self) -> (Error, W) {
172170
(self.1, self.0)
173171
}

0 commit comments

Comments
 (0)