Skip to content

Commit bc30c72

Browse files
committed
Auto merge of #124076 - NobodyXu:patch-1, r=dtolnay
Stablise io_error_downcast Tracking issue #99262 Closes #99262 FCP completed in #99262 (comment)
2 parents 3a36386 + 7b53f69 commit bc30c72

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
@@ -869,8 +869,6 @@ impl Error {
869869
/// # Examples
870870
///
871871
/// ```
872-
/// #![feature(io_error_downcast)]
873-
///
874872
/// use std::fmt;
875873
/// use std::io;
876874
/// use std::error::Error;
@@ -923,7 +921,7 @@ impl Error {
923921
/// assert!(io_error.raw_os_error().is_none());
924922
/// # }
925923
/// ```
926-
#[unstable(feature = "io_error_downcast", issue = "99262")]
924+
#[stable(feature = "io_error_downcast", since = "CURRENT_RUSTC_VERSION")]
927925
pub fn downcast<E>(self) -> result::Result<E, Self>
928926
where
929927
E: error::Error + Send + Sync + 'static,

0 commit comments

Comments
 (0)