Skip to content

Commit

Permalink
Auto merge of rust-lang#115453 - ibraheemdev:patch-16, r=joshtriplett
Browse files Browse the repository at this point in the history
Stabilize `io_error_other` feature

Per the FCP for rust-lang#91946.
  • Loading branch information
bors committed Sep 6, 2023
2 parents 3767e31 + 7abfc57 commit 24bece8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions library/std/src/io/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,6 @@ impl Error {
/// # Examples
///
/// ```
/// #![feature(io_error_other)]
///
/// use std::io::Error;
///
/// // errors can be created from strings
Expand All @@ -537,7 +535,7 @@ impl Error {
/// // errors can also be created from other errors
/// let custom_error2 = Error::other(custom_error);
/// ```
#[unstable(feature = "io_error_other", issue = "91946")]
#[stable(feature = "io_error_other", since = "CURRENT_RUSTC_VERSION")]
pub fn other<E>(error: E) -> Error
where
E: Into<Box<dyn error::Error + Send + Sync>>,
Expand Down

0 comments on commit 24bece8

Please sign in to comment.