about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJiahao XU <Jiahao_XU@outlook.com>2024-04-18 00:07:46 +1000
committerGitHub <noreply@github.com>2024-04-18 00:07:46 +1000
commit7b53f69674d9777da12bae5e3241eaf25069ba4e (patch)
tree61f955ac21cbc78e3ffb3a543c9a5a56ce2dc4da
parent6c6b3027ef62e911142cfc55589baef4e9f38ec8 (diff)
downloadrust-7b53f69674d9777da12bae5e3241eaf25069ba4e.tar.gz
rust-7b53f69674d9777da12bae5e3241eaf25069ba4e.zip
Stablise io_error_downcast
Tracking issue #99262
-rw-r--r--library/std/src/io/error.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/library/std/src/io/error.rs b/library/std/src/io/error.rs
index 21ae7b91207..801621c6112 100644
--- a/library/std/src/io/error.rs
+++ b/library/std/src/io/error.rs
@@ -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,