Skip to content

Commit

Permalink
stabilize io_error_other feature
Browse files Browse the repository at this point in the history
  • Loading branch information
ibraheemdev authored Sep 1, 2023
1 parent 361f8ba commit 7abfc57
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 7abfc57

Please sign in to comment.