@@ -189,7 +189,7 @@ pub struct OpenOptions(fs_imp::OpenOptions);
189
189
190
190
/// Representation of the various timestamps on a file.
191
191
#[ derive( Copy , Clone , Debug , Default ) ]
192
- #[ unstable ( feature = "file_set_times" , issue = "98245 " ) ]
192
+ #[ stable ( feature = "file_set_times" , since = "CURRENT_RUSTC_VERSION " ) ]
193
193
pub struct FileTimes ( fs_imp:: FileTimes ) ;
194
194
195
195
/// Representation of the various permissions on a file.
@@ -676,8 +676,6 @@ impl File {
676
676
/// # Examples
677
677
///
678
678
/// ```no_run
679
- /// #![feature(file_set_times)]
680
- ///
681
679
/// fn main() -> std::io::Result<()> {
682
680
/// use std::fs::{self, File, FileTimes};
683
681
///
@@ -690,7 +688,7 @@ impl File {
690
688
/// Ok(())
691
689
/// }
692
690
/// ```
693
- #[ unstable ( feature = "file_set_times" , issue = "98245 " ) ]
691
+ #[ stable ( feature = "file_set_times" , since = "CURRENT_RUSTC_VERSION " ) ]
694
692
#[ doc( alias = "futimens" ) ]
695
693
#[ doc( alias = "futimes" ) ]
696
694
#[ doc( alias = "SetFileTime" ) ]
@@ -701,7 +699,7 @@ impl File {
701
699
/// Changes the modification time of the underlying file.
702
700
///
703
701
/// This is an alias for `set_times(FileTimes::new().set_modified(time))`.
704
- #[ unstable ( feature = "file_set_times" , issue = "98245 " ) ]
702
+ #[ stable ( feature = "file_set_times" , since = "CURRENT_RUSTC_VERSION " ) ]
705
703
#[ inline]
706
704
pub fn set_modified ( & self , time : SystemTime ) -> io:: Result < ( ) > {
707
705
self . set_times ( FileTimes :: new ( ) . set_modified ( time) )
@@ -1415,20 +1413,20 @@ impl FileTimes {
1415
1413
/// Create a new `FileTimes` with no times set.
1416
1414
///
1417
1415
/// Using the resulting `FileTimes` in [`File::set_times`] will not modify any timestamps.
1418
- #[ unstable ( feature = "file_set_times" , issue = "98245 " ) ]
1416
+ #[ stable ( feature = "file_set_times" , since = "CURRENT_RUSTC_VERSION " ) ]
1419
1417
pub fn new ( ) -> Self {
1420
1418
Self :: default ( )
1421
1419
}
1422
1420
1423
1421
/// Set the last access time of a file.
1424
- #[ unstable ( feature = "file_set_times" , issue = "98245 " ) ]
1422
+ #[ stable ( feature = "file_set_times" , since = "CURRENT_RUSTC_VERSION " ) ]
1425
1423
pub fn set_accessed ( mut self , t : SystemTime ) -> Self {
1426
1424
self . 0 . set_accessed ( t. into_inner ( ) ) ;
1427
1425
self
1428
1426
}
1429
1427
1430
1428
/// Set the last modified time of a file.
1431
- #[ unstable ( feature = "file_set_times" , issue = "98245 " ) ]
1429
+ #[ stable ( feature = "file_set_times" , since = "CURRENT_RUSTC_VERSION " ) ]
1432
1430
pub fn set_modified ( mut self , t : SystemTime ) -> Self {
1433
1431
self . 0 . set_modified ( t. into_inner ( ) ) ;
1434
1432
self
@@ -1442,7 +1440,7 @@ impl AsInnerMut<fs_imp::FileTimes> for FileTimes {
1442
1440
}
1443
1441
1444
1442
// For implementing OS extension traits in `std::os`
1445
- #[ unstable ( feature = "file_set_times" , issue = "98245 " ) ]
1443
+ #[ stable ( feature = "file_set_times" , since = "CURRENT_RUSTC_VERSION " ) ]
1446
1444
impl Sealed for FileTimes { }
1447
1445
1448
1446
impl Permissions {
0 commit comments