@@ -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
- #[ unstable ( feature = "file_lock" , issue = "130994 " ) ]
124
+ #[ stable ( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
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
- #[ unstable ( feature = "file_lock" , issue = "130994 " ) ]
369
+ #[ stable ( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
370
370
impl error:: Error for TryLockError { }
371
371
372
- #[ unstable ( feature = "file_lock" , issue = "130994 " ) ]
372
+ #[ stable ( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
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
- #[ unstable ( feature = "file_lock" , issue = "130994 " ) ]
382
+ #[ stable ( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
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
- #[ unstable ( feature = "file_lock" , issue = "130994 " ) ]
393
+ #[ stable ( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
394
394
impl From < TryLockError > for io:: Error {
395
395
fn from ( err : TryLockError ) -> io:: Error {
396
396
match err {
@@ -713,7 +713,6 @@ impl File {
713
713
/// # Examples
714
714
///
715
715
/// ```no_run
716
- /// #![feature(file_lock)]
717
716
/// use std::fs::File;
718
717
///
719
718
/// fn main() -> std::io::Result<()> {
@@ -722,7 +721,7 @@ impl File {
722
721
/// Ok(())
723
722
/// }
724
723
/// ```
725
- #[ unstable ( feature = "file_lock" , issue = "130994 " ) ]
724
+ #[ stable ( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
726
725
pub fn lock ( & self ) -> io:: Result < ( ) > {
727
726
self . inner . lock ( )
728
727
}
@@ -766,7 +765,6 @@ impl File {
766
765
/// # Examples
767
766
///
768
767
/// ```no_run
769
- /// #![feature(file_lock)]
770
768
/// use std::fs::File;
771
769
///
772
770
/// fn main() -> std::io::Result<()> {
@@ -775,7 +773,7 @@ impl File {
775
773
/// Ok(())
776
774
/// }
777
775
/// ```
778
- #[ unstable ( feature = "file_lock" , issue = "130994 " ) ]
776
+ #[ stable ( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
779
777
pub fn lock_shared ( & self ) -> io:: Result < ( ) > {
780
778
self . inner . lock_shared ( )
781
779
}
@@ -824,7 +822,6 @@ impl File {
824
822
/// # Examples
825
823
///
826
824
/// ```no_run
827
- /// #![feature(file_lock)]
828
825
/// use std::fs::{File, TryLockError};
829
826
///
830
827
/// fn main() -> std::io::Result<()> {
@@ -840,7 +837,7 @@ impl File {
840
837
/// Ok(())
841
838
/// }
842
839
/// ```
843
- #[ unstable ( feature = "file_lock" , issue = "130994 " ) ]
840
+ #[ stable ( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
844
841
pub fn try_lock ( & self ) -> Result < ( ) , TryLockError > {
845
842
self . inner . try_lock ( )
846
843
}
@@ -888,7 +885,6 @@ impl File {
888
885
/// # Examples
889
886
///
890
887
/// ```no_run
891
- /// #![feature(file_lock)]
892
888
/// use std::fs::{File, TryLockError};
893
889
///
894
890
/// fn main() -> std::io::Result<()> {
@@ -905,7 +901,7 @@ impl File {
905
901
/// Ok(())
906
902
/// }
907
903
/// ```
908
- #[ unstable ( feature = "file_lock" , issue = "130994 " ) ]
904
+ #[ stable ( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
909
905
pub fn try_lock_shared ( & self ) -> Result < ( ) , TryLockError > {
910
906
self . inner . try_lock_shared ( )
911
907
}
@@ -933,7 +929,6 @@ impl File {
933
929
/// # Examples
934
930
///
935
931
/// ```no_run
936
- /// #![feature(file_lock)]
937
932
/// use std::fs::File;
938
933
///
939
934
/// fn main() -> std::io::Result<()> {
@@ -943,7 +938,7 @@ impl File {
943
938
/// Ok(())
944
939
/// }
945
940
/// ```
946
- #[ unstable ( feature = "file_lock" , issue = "130994 " ) ]
941
+ #[ stable ( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
947
942
pub fn unlock ( & self ) -> io:: Result < ( ) > {
948
943
self . inner . unlock ( )
949
944
}
0 commit comments