1
Fork 0

Rollup merge of #105137 - yjhn:patch-1, r=Dylan-DPC

Add tracking issue number for `file_create_new` feature

It was missing a tracking issue, so I opened one (#105135).
This commit is contained in:
Matthias Krüger 2022-12-02 08:28:11 +01:00 committed by GitHub
commit c7edfddc2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -401,7 +401,7 @@ impl File {
/// Ok(())
/// }
/// ```
#[unstable(feature = "file_create_new", issue = "none")]
#[unstable(feature = "file_create_new", issue = "105135")]
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())
}