Skip to content

Commit 7b53f69

Browse files
authored
Stablise io_error_downcast
Tracking issue rust-lang#99262
1 parent 6c6b302 commit 7b53f69

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: 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)