Skip to content

Commit

Permalink
Auto merge of rust-lang#124076 - NobodyXu:patch-1, r=dtolnay
Browse files Browse the repository at this point in the history
Stablise io_error_downcast

Tracking issue rust-lang#99262
Closes rust-lang#99262

FCP completed in rust-lang#99262 (comment)
  • Loading branch information
bors committed Apr 26, 2024
2 parents 3a36386 + 7b53f69 commit bc30c72
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 @@ -869,8 +869,6 @@ impl Error {
/// # Examples
///
/// ```
/// #![feature(io_error_downcast)]
///
/// use std::fmt;
/// use std::io;
/// use std::error::Error;
Expand Down Expand Up @@ -923,7 +921,7 @@ impl Error {
/// assert!(io_error.raw_os_error().is_none());
/// # }
/// ```
#[unstable(feature = "io_error_downcast", issue = "99262")]
#[stable(feature = "io_error_downcast", since = "CURRENT_RUSTC_VERSION")]
pub fn downcast<E>(self) -> result::Result<E, Self>
where
E: error::Error + Send + Sync + 'static,
Expand Down

0 comments on commit bc30c72

Please sign in to comment.