Skip to content

Commit 62d5321

Browse files
committed
stabilize file_create_new
closes #105135
1 parent 5810dee commit 62d5321

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

library/std/src/fs.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,6 @@ impl File {
411411
/// # Examples
412412
///
413413
/// ```no_run
414-
/// #![feature(file_create_new)]
415-
///
416414
/// use std::fs::File;
417415
/// use std::io::Write;
418416
///
@@ -422,7 +420,7 @@ impl File {
422420
/// Ok(())
423421
/// }
424422
/// ```
425-
#[unstable(feature = "file_create_new", issue = "105135")]
423+
#[stable(feature = "file_create_new", since = "CURRENT_RUSTC_VERSION")]
426424
pub fn create_new<P: AsRef<Path>>(path: P) -> io::Result<File> {
427425
OpenOptions::new().read(true).write(true).create_new(true).open(path.as_ref())
428426
}

0 commit comments

Comments
 (0)