We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5459247 + 62d5321 commit b136919Copy full SHA for b136919
library/std/src/fs.rs
@@ -411,8 +411,6 @@ impl File {
411
/// # Examples
412
///
413
/// ```no_run
414
- /// #![feature(file_create_new)]
415
- ///
416
/// use std::fs::File;
417
/// use std::io::Write;
418
@@ -422,7 +420,7 @@ impl File {
422
420
/// Ok(())
423
421
/// }
424
/// ```
425
- #[unstable(feature = "file_create_new", issue = "105135")]
+ #[stable(feature = "file_create_new", since = "CURRENT_RUSTC_VERSION")]
426
pub fn create_new<P: AsRef<Path>>(path: P) -> io::Result<File> {
427
OpenOptions::new().read(true).write(true).create_new(true).open(path.as_ref())
428
}
0 commit comments