@@ -660,7 +660,6 @@ impl File {
660660 /// # Examples
661661 ///
662662 /// ```no_run
663- /// #![feature(file_lock)]
664663 /// use std::fs::File;
665664 ///
666665 /// fn main() -> std::io::Result<()> {
@@ -669,7 +668,7 @@ impl File {
669668 /// Ok(())
670669 /// }
671670 /// ```
672- #[ unstable ( feature = "file_lock" , issue = "130994 " ) ]
671+ #[ stable ( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
673672 pub fn lock ( & self ) -> io:: Result < ( ) > {
674673 self . inner . lock ( )
675674 }
@@ -708,7 +707,6 @@ impl File {
708707 /// # Examples
709708 ///
710709 /// ```no_run
711- /// #![feature(file_lock)]
712710 /// use std::fs::File;
713711 ///
714712 /// fn main() -> std::io::Result<()> {
@@ -717,7 +715,7 @@ impl File {
717715 /// Ok(())
718716 /// }
719717 /// ```
720- #[ unstable ( feature = "file_lock" , issue = "130994 " ) ]
718+ #[ stable ( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
721719 pub fn lock_shared ( & self ) -> io:: Result < ( ) > {
722720 self . inner . lock_shared ( )
723721 }
@@ -763,7 +761,6 @@ impl File {
763761 /// # Examples
764762 ///
765763 /// ```no_run
766- /// #![feature(file_lock)]
767764 /// use std::fs::File;
768765 ///
769766 /// fn main() -> std::io::Result<()> {
@@ -772,7 +769,7 @@ impl File {
772769 /// Ok(())
773770 /// }
774771 /// ```
775- #[ unstable ( feature = "file_lock" , issue = "130994 " ) ]
772+ #[ stable ( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
776773 pub fn try_lock ( & self ) -> io:: Result < bool > {
777774 self . inner . try_lock ( )
778775 }
@@ -815,7 +812,6 @@ impl File {
815812 /// # Examples
816813 ///
817814 /// ```no_run
818- /// #![feature(file_lock)]
819815 /// use std::fs::File;
820816 ///
821817 /// fn main() -> std::io::Result<()> {
@@ -824,7 +820,7 @@ impl File {
824820 /// Ok(())
825821 /// }
826822 /// ```
827- #[ unstable ( feature = "file_lock" , issue = "130994 " ) ]
823+ #[ stable ( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
828824 pub fn try_lock_shared ( & self ) -> io:: Result < bool > {
829825 self . inner . try_lock_shared ( )
830826 }
@@ -849,7 +845,6 @@ impl File {
849845 /// # Examples
850846 ///
851847 /// ```no_run
852- /// #![feature(file_lock)]
853848 /// use std::fs::File;
854849 ///
855850 /// fn main() -> std::io::Result<()> {
@@ -859,7 +854,7 @@ impl File {
859854 /// Ok(())
860855 /// }
861856 /// ```
862- #[ unstable ( feature = "file_lock" , issue = "130994 " ) ]
857+ #[ stable ( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
863858 pub fn unlock ( & self ) -> io:: Result < ( ) > {
864859 self . inner . unlock ( )
865860 }
0 commit comments