about summary refs log tree commit diff
path: root/library/std/src/io
diff options
context:
space:
mode:
authorIbraheem Ahmed <ibraheem@ibraheem.ca>2023-09-01 16:04:41 -0400
committerGitHub <noreply@github.com>2023-09-01 16:04:41 -0400
commit7abfc57ea19ebb2dd322655f6bdda1ce9f60af78 (patch)
treea127785d05a4d8240cc9c0cba5a660384b8bb5dd /library/std/src/io
parent361f8ba847af0288b1beb3b84f6b7b4d3850bb43 (diff)
downloadrust-7abfc57ea19ebb2dd322655f6bdda1ce9f60af78.tar.gz
rust-7abfc57ea19ebb2dd322655f6bdda1ce9f60af78.zip
stabilize `io_error_other` feature
Diffstat (limited to 'library/std/src/io')
-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 d6fce4ee78f..1c5c60494f3 100644
--- a/library/std/src/io/error.rs
+++ b/library/std/src/io/error.rs
@@ -527,8 +527,6 @@ impl Error {
     /// # Examples
     ///
     /// ```
-    /// #![feature(io_error_other)]
-    ///
     /// use std::io::Error;
     ///
     /// // errors can be created from strings
@@ -537,7 +535,7 @@ impl Error {
     /// // errors can also be created from other errors
     /// let custom_error2 = Error::other(custom_error);
     /// ```
-    #[unstable(feature = "io_error_other", issue = "91946")]
+    #[stable(feature = "io_error_other", since = "CURRENT_RUSTC_VERSION")]
     pub fn other<E>(error: E) -> Error
     where
         E: Into<Box<dyn error::Error + Send + Sync>>,