From 7b53f69674d9777da12bae5e3241eaf25069ba4e Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Thu, 18 Apr 2024 00:07:46 +1000 Subject: [PATCH] Stablise io_error_downcast Tracking issue #99262 --- library/std/src/io/error.rs | 4 +--- 1 file changed, 1 insertion(+), 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 @@ pub fn into_inner(self) -> Option> { /// # Examples /// /// ``` - /// #![feature(io_error_downcast)] - /// /// use std::fmt; /// use std::io; /// use std::error::Error; @@ -923,7 +921,7 @@ pub fn into_inner(self) -> Option> { /// 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(self) -> result::Result where E: error::Error + Send + Sync + 'static,