about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-04-25 20:07:40 -0400
committerGitHub <noreply@github.com>2024-04-25 20:07:40 -0400
commit6f5c69e65f2e1da139b2cd204e693d80e0ad17ac (patch)
tree9fe9d8b378d4dd44dbb82ea3630046478b5e7654
parent3a36386dc1075018dc7ca2640a2656adb31a61fe (diff)
parent7b53f69674d9777da12bae5e3241eaf25069ba4e (diff)
downloadrust-6f5c69e65f2e1da139b2cd204e693d80e0ad17ac.tar.gz
rust-6f5c69e65f2e1da139b2cd204e693d80e0ad17ac.zip
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
-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,