Skip to content

Commit 7abfc57

Browse files
authored
stabilize io_error_other feature
1 parent 361f8ba commit 7abfc57

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

library/std/src/io/error.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -527,8 +527,6 @@ impl Error {
527527
/// # Examples
528528
///
529529
/// ```
530-
/// #![feature(io_error_other)]
531-
///
532530
/// use std::io::Error;
533531
///
534532
/// // errors can be created from strings
@@ -537,7 +535,7 @@ impl Error {
537535
/// // errors can also be created from other errors
538536
/// let custom_error2 = Error::other(custom_error);
539537
/// ```
540-
#[unstable(feature = "io_error_other", issue = "91946")]
538+
#[stable(feature = "io_error_other", since = "CURRENT_RUSTC_VERSION")]
541539
pub fn other<E>(error: E) -> Error
542540
where
543541
E: Into<Box<dyn error::Error + Send + Sync>>,

0 commit comments

Comments
 (0)