about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-12-23 20:02:28 +0100
committerGitHub <noreply@github.com>2023-12-23 20:02:28 +0100
commitb136919ca69df6cf58e8773fd6cf8a3a83d45047 (patch)
tree13c2228c3814657b5f535ac15615d647758af775
parent54592473c1617cc098bb667e65991ffaaa22bddc (diff)
parent62d53211b0071ca7f80c503525997d07c98ec9e9 (diff)
downloadrust-b136919ca69df6cf58e8773fd6cf8a3a83d45047.tar.gz
rust-b136919ca69df6cf58e8773fd6cf8a3a83d45047.zip
Rollup merge of #119153 - rursprung:stabilize-file_create_new, r=dtolnay
stabilize `file_create_new`

closes #105135
-rw-r--r--library/std/src/fs.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs
index 4310e108303..38050cf684f 100644
--- a/library/std/src/fs.rs
+++ b/library/std/src/fs.rs
@@ -411,8 +411,6 @@ impl File {
     /// # Examples
     ///
     /// ```no_run
-    /// #![feature(file_create_new)]
-    ///
     /// use std::fs::File;
     /// use std::io::Write;
     ///
@@ -422,7 +420,7 @@ impl File {
     ///     Ok(())
     /// }
     /// ```
-    #[unstable(feature = "file_create_new", issue = "105135")]
+    #[stable(feature = "file_create_new", since = "CURRENT_RUSTC_VERSION")]
     pub fn create_new<P: AsRef<Path>>(path: P) -> io::Result<File> {
         OpenOptions::new().read(true).write(true).create_new(true).open(path.as_ref())
     }