@@ -121,7 +121,7 @@ pub struct File {
121121///
122122/// [`try_lock`]: File::try_lock
123123/// [`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 " ) ]
125125pub enum TryLockError {
126126 /// The lock could not be acquired due to an I/O error on the file. The standard library will
127127 /// 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
366366 inner ( path. as_ref ( ) , contents. as_ref ( ) )
367367}
368368
369- #[ stable( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
369+ #[ stable( feature = "file_lock" , since = "1.89.0 " ) ]
370370impl error:: Error for TryLockError { }
371371
372- #[ stable( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
372+ #[ stable( feature = "file_lock" , since = "1.89.0 " ) ]
373373impl fmt:: Debug for TryLockError {
374374 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
375375 match self {
@@ -379,7 +379,7 @@ impl fmt::Debug for TryLockError {
379379 }
380380}
381381
382- #[ stable( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
382+ #[ stable( feature = "file_lock" , since = "1.89.0 " ) ]
383383impl fmt:: Display for TryLockError {
384384 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
385385 match self {
@@ -390,7 +390,7 @@ impl fmt::Display for TryLockError {
390390 }
391391}
392392
393- #[ stable( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
393+ #[ stable( feature = "file_lock" , since = "1.89.0 " ) ]
394394impl From < TryLockError > for io:: Error {
395395 fn from ( err : TryLockError ) -> io:: Error {
396396 match err {
@@ -721,7 +721,7 @@ impl File {
721721 /// Ok(())
722722 /// }
723723 /// ```
724- #[ stable( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
724+ #[ stable( feature = "file_lock" , since = "1.89.0 " ) ]
725725 pub fn lock ( & self ) -> io:: Result < ( ) > {
726726 self . inner . lock ( )
727727 }
@@ -773,7 +773,7 @@ impl File {
773773 /// Ok(())
774774 /// }
775775 /// ```
776- #[ stable( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
776+ #[ stable( feature = "file_lock" , since = "1.89.0 " ) ]
777777 pub fn lock_shared ( & self ) -> io:: Result < ( ) > {
778778 self . inner . lock_shared ( )
779779 }
@@ -837,7 +837,7 @@ impl File {
837837 /// Ok(())
838838 /// }
839839 /// ```
840- #[ stable( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
840+ #[ stable( feature = "file_lock" , since = "1.89.0 " ) ]
841841 pub fn try_lock ( & self ) -> Result < ( ) , TryLockError > {
842842 self . inner . try_lock ( )
843843 }
@@ -901,7 +901,7 @@ impl File {
901901 /// Ok(())
902902 /// }
903903 /// ```
904- #[ stable( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
904+ #[ stable( feature = "file_lock" , since = "1.89.0 " ) ]
905905 pub fn try_lock_shared ( & self ) -> Result < ( ) , TryLockError > {
906906 self . inner . try_lock_shared ( )
907907 }
@@ -938,7 +938,7 @@ impl File {
938938 /// Ok(())
939939 /// }
940940 /// ```
941- #[ stable( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
941+ #[ stable( feature = "file_lock" , since = "1.89.0 " ) ]
942942 pub fn unlock ( & self ) -> io:: Result < ( ) > {
943943 self . inner . unlock ( )
944944 }
0 commit comments