Rollup merge of #124076 - NobodyXu:patch-1, r=dtolnay
Stablise io_error_downcast Tracking issue #99262 Closes #99262 FCP completed in https://github.com/rust-lang/rust/issues/99262#issuecomment-2077374397
This commit is contained in:
commit
6f5c69e65f
1 changed files with 1 additions and 3 deletions
|
@ -869,8 +869,6 @@ impl Error {
|
|||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(io_error_downcast)]
|
||||
///
|
||||
/// use std::fmt;
|
||||
/// use std::io;
|
||||
/// use std::error::Error;
|
||||
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue