@@ -121,7 +121,7 @@ pub struct File {
121
121
///
122
122
/// [`try_lock`]: File::try_lock
123
123
/// [`try_lock_shared`]: File::try_lock_shared
124
- #[ stable( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
124
+ #[ stable( feature = "file_lock" , since = "1.89.0 " ) ]
125
125
pub enum TryLockError {
126
126
/// The lock could not be acquired due to an I/O error on the file. The standard library will
127
127
/// not return an [`ErrorKind::WouldBlock`] error inside [`TryLockError::Error`]
@@ -366,10 +366,10 @@ pub fn write<P: AsRef<Path>, C: AsRef<[u8]>>(path: P, contents: C) -> io::Result
366
366
inner ( path. as_ref ( ) , contents. as_ref ( ) )
367
367
}
368
368
369
- #[ stable( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
369
+ #[ stable( feature = "file_lock" , since = "1.89.0 " ) ]
370
370
impl error:: Error for TryLockError { }
371
371
372
- #[ stable( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
372
+ #[ stable( feature = "file_lock" , since = "1.89.0 " ) ]
373
373
impl fmt:: Debug for TryLockError {
374
374
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
375
375
match self {
@@ -379,7 +379,7 @@ impl fmt::Debug for TryLockError {
379
379
}
380
380
}
381
381
382
- #[ stable( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
382
+ #[ stable( feature = "file_lock" , since = "1.89.0 " ) ]
383
383
impl fmt:: Display for TryLockError {
384
384
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
385
385
match self {
@@ -390,7 +390,7 @@ impl fmt::Display for TryLockError {
390
390
}
391
391
}
392
392
393
- #[ stable( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
393
+ #[ stable( feature = "file_lock" , since = "1.89.0 " ) ]
394
394
impl From < TryLockError > for io:: Error {
395
395
fn from ( err : TryLockError ) -> io:: Error {
396
396
match err {
@@ -721,7 +721,7 @@ impl File {
721
721
/// Ok(())
722
722
/// }
723
723
/// ```
724
- #[ stable( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
724
+ #[ stable( feature = "file_lock" , since = "1.89.0 " ) ]
725
725
pub fn lock ( & self ) -> io:: Result < ( ) > {
726
726
self . inner . lock ( )
727
727
}
@@ -773,7 +773,7 @@ impl File {
773
773
/// Ok(())
774
774
/// }
775
775
/// ```
776
- #[ stable( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
776
+ #[ stable( feature = "file_lock" , since = "1.89.0 " ) ]
777
777
pub fn lock_shared ( & self ) -> io:: Result < ( ) > {
778
778
self . inner . lock_shared ( )
779
779
}
@@ -837,7 +837,7 @@ impl File {
837
837
/// Ok(())
838
838
/// }
839
839
/// ```
840
- #[ stable( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
840
+ #[ stable( feature = "file_lock" , since = "1.89.0 " ) ]
841
841
pub fn try_lock ( & self ) -> Result < ( ) , TryLockError > {
842
842
self . inner . try_lock ( )
843
843
}
@@ -901,7 +901,7 @@ impl File {
901
901
/// Ok(())
902
902
/// }
903
903
/// ```
904
- #[ stable( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
904
+ #[ stable( feature = "file_lock" , since = "1.89.0 " ) ]
905
905
pub fn try_lock_shared ( & self ) -> Result < ( ) , TryLockError > {
906
906
self . inner . try_lock_shared ( )
907
907
}
@@ -938,7 +938,7 @@ impl File {
938
938
/// Ok(())
939
939
/// }
940
940
/// ```
941
- #[ stable( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
941
+ #[ stable( feature = "file_lock" , since = "1.89.0 " ) ]
942
942
pub fn unlock ( & self ) -> io:: Result < ( ) > {
943
943
self . inner . unlock ( )
944
944
}
0 commit comments