@@ -665,6 +665,7 @@ impl File {
665665 /// # Examples
666666 ///
667667 /// ```no_run
668+ /// #![feature(file_lock)]
668669 /// use std::fs::File;
669670 ///
670671 /// fn main() -> std::io::Result<()> {
@@ -673,7 +674,7 @@ impl File {
673674 /// Ok(())
674675 /// }
675676 /// ```
676- #[ stable ( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
677+ #[ unstable ( feature = "file_lock" , issue = "130994 " ) ]
677678 pub fn lock ( & self ) -> io:: Result < ( ) > {
678679 self . inner . lock ( )
679680 }
@@ -717,6 +718,7 @@ impl File {
717718 /// # Examples
718719 ///
719720 /// ```no_run
721+ /// #![feature(file_lock)]
720722 /// use std::fs::File;
721723 ///
722724 /// fn main() -> std::io::Result<()> {
@@ -725,7 +727,7 @@ impl File {
725727 /// Ok(())
726728 /// }
727729 /// ```
728- #[ stable ( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
730+ #[ unstable ( feature = "file_lock" , issue = "130994 " ) ]
729731 pub fn lock_shared ( & self ) -> io:: Result < ( ) > {
730732 self . inner . lock_shared ( )
731733 }
@@ -774,6 +776,7 @@ impl File {
774776 /// # Examples
775777 ///
776778 /// ```no_run
779+ /// #![feature(file_lock)]
777780 /// use std::fs::File;
778781 ///
779782 /// fn main() -> std::io::Result<()> {
@@ -782,7 +785,7 @@ impl File {
782785 /// Ok(())
783786 /// }
784787 /// ```
785- #[ stable ( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
788+ #[ unstable ( feature = "file_lock" , issue = "130994 " ) ]
786789 pub fn try_lock ( & self ) -> io:: Result < bool > {
787790 self . inner . try_lock ( )
788791 }
@@ -830,6 +833,7 @@ impl File {
830833 /// # Examples
831834 ///
832835 /// ```no_run
836+ /// #![feature(file_lock)]
833837 /// use std::fs::File;
834838 ///
835839 /// fn main() -> std::io::Result<()> {
@@ -838,7 +842,7 @@ impl File {
838842 /// Ok(())
839843 /// }
840844 /// ```
841- #[ stable ( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
845+ #[ unstable ( feature = "file_lock" , issue = "130994 " ) ]
842846 pub fn try_lock_shared ( & self ) -> io:: Result < bool > {
843847 self . inner . try_lock_shared ( )
844848 }
@@ -866,6 +870,7 @@ impl File {
866870 /// # Examples
867871 ///
868872 /// ```no_run
873+ /// #![feature(file_lock)]
869874 /// use std::fs::File;
870875 ///
871876 /// fn main() -> std::io::Result<()> {
@@ -875,7 +880,7 @@ impl File {
875880 /// Ok(())
876881 /// }
877882 /// ```
878- #[ stable ( feature = "file_lock" , since = "CURRENT_RUSTC_VERSION " ) ]
883+ #[ unstable ( feature = "file_lock" , issue = "130994 " ) ]
879884 pub fn unlock ( & self ) -> io:: Result < ( ) > {
880885 self . inner . unlock ( )
881886 }
0 commit comments