mirror of
https://github.com/allankoechke/rust.git
synced 2026-11-30 17:26:12 +00:00
Stabilize fs_set_times
This stabilizes both functions under this feature gate: * `std::fs::set_times` * `std::fs::set_times_nofollow`
This commit is contained in:
@@ -443,7 +443,6 @@ pub fn write<P: AsRef<Path>, C: AsRef<[u8]>>(path: P, contents: C) -> io::Result
|
||||
/// # Examples
|
||||
///
|
||||
/// ```no_run
|
||||
/// #![feature(fs_set_times)]
|
||||
/// use std::fs::{self, FileTimes};
|
||||
/// use std::time::SystemTime;
|
||||
///
|
||||
@@ -456,7 +455,7 @@ pub fn write<P: AsRef<Path>, C: AsRef<[u8]>>(path: P, contents: C) -> io::Result
|
||||
/// Ok(())
|
||||
/// }
|
||||
/// ```
|
||||
#[unstable(feature = "fs_set_times", issue = "147455")]
|
||||
#[stable(feature = "fs_set_times", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[doc(alias = "utimens")]
|
||||
#[doc(alias = "utimes")]
|
||||
#[doc(alias = "utime")]
|
||||
@@ -484,7 +483,6 @@ pub fn set_times<P: AsRef<Path>>(path: P, times: FileTimes) -> io::Result<()> {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```no_run
|
||||
/// #![feature(fs_set_times)]
|
||||
/// use std::fs::{self, FileTimes};
|
||||
/// use std::time::SystemTime;
|
||||
///
|
||||
@@ -497,7 +495,7 @@ pub fn set_times<P: AsRef<Path>>(path: P, times: FileTimes) -> io::Result<()> {
|
||||
/// Ok(())
|
||||
/// }
|
||||
/// ```
|
||||
#[unstable(feature = "fs_set_times", issue = "147455")]
|
||||
#[stable(feature = "fs_set_times", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[doc(alias = "utimensat")]
|
||||
#[doc(alias = "lutimens")]
|
||||
#[doc(alias = "lutimes")]
|
||||
|
||||
Reference in New Issue
Block a user