From 7253b2ba610be3cfdfd391de9af8ec461a2dee27 Mon Sep 17 00:00:00 2001 From: Mark Rousskov Date: Sun, 9 Aug 2026 18:09:39 -0400 Subject: [PATCH] Stabilize fs_set_times This stabilizes both functions under this feature gate: * `std::fs::set_times` * `std::fs::set_times_nofollow` --- library/std/src/fs.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs index 3b8499758d9..58874a27f8a 100644 --- a/library/std/src/fs.rs +++ b/library/std/src/fs.rs @@ -443,7 +443,6 @@ pub fn write, 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, 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>(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>(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")]