@@ -665,6 +665,7 @@ impl File {
665
665
/// # Examples
666
666
///
667
667
/// ```no_run
668
+ /// #![feature(file_lock)]
668
669
/// use std::fs::File;
669
670
///
670
671
/// fn main() -> std::io::Result<()> {
@@ -673,7 +674,7 @@ impl File {
673
674
/// Ok(())
674
675
/// }
675
676
/// ```
676
- #[stable (feature = "file_lock", since = "CURRENT_RUSTC_VERSION ")]
677
+ #[unstable (feature = "file_lock", issue = "130994 ")]
677
678
pub fn lock(&self) -> io::Result<()> {
678
679
self.inner.lock()
679
680
}
@@ -717,6 +718,7 @@ impl File {
717
718
/// # Examples
718
719
///
719
720
/// ```no_run
721
+ /// #![feature(file_lock)]
720
722
/// use std::fs::File;
721
723
///
722
724
/// fn main() -> std::io::Result<()> {
@@ -725,7 +727,7 @@ impl File {
725
727
/// Ok(())
726
728
/// }
727
729
/// ```
728
- #[stable (feature = "file_lock", since = "CURRENT_RUSTC_VERSION ")]
730
+ #[unstable (feature = "file_lock", issue = "130994 ")]
729
731
pub fn lock_shared(&self) -> io::Result<()> {
730
732
self.inner.lock_shared()
731
733
}
@@ -774,6 +776,7 @@ impl File {
774
776
/// # Examples
775
777
///
776
778
/// ```no_run
779
+ /// #![feature(file_lock)]
777
780
/// use std::fs::File;
778
781
///
779
782
/// fn main() -> std::io::Result<()> {
@@ -782,7 +785,7 @@ impl File {
782
785
/// Ok(())
783
786
/// }
784
787
/// ```
785
- #[stable (feature = "file_lock", since = "CURRENT_RUSTC_VERSION ")]
788
+ #[unstable (feature = "file_lock", issue = "130994 ")]
786
789
pub fn try_lock(&self) -> io::Result<bool> {
787
790
self.inner.try_lock()
788
791
}
@@ -830,6 +833,7 @@ impl File {
830
833
/// # Examples
831
834
///
832
835
/// ```no_run
836
+ /// #![feature(file_lock)]
833
837
/// use std::fs::File;
834
838
///
835
839
/// fn main() -> std::io::Result<()> {
@@ -838,7 +842,7 @@ impl File {
838
842
/// Ok(())
839
843
/// }
840
844
/// ```
841
- #[stable (feature = "file_lock", since = "CURRENT_RUSTC_VERSION ")]
845
+ #[unstable (feature = "file_lock", issue = "130994 ")]
842
846
pub fn try_lock_shared(&self) -> io::Result<bool> {
843
847
self.inner.try_lock_shared()
844
848
}
@@ -866,6 +870,7 @@ impl File {
866
870
/// # Examples
867
871
///
868
872
/// ```no_run
873
+ /// #![feature(file_lock)]
869
874
/// use std::fs::File;
870
875
///
871
876
/// fn main() -> std::io::Result<()> {
@@ -875,7 +880,7 @@ impl File {
875
880
/// Ok(())
876
881
/// }
877
882
/// ```
878
- #[stable (feature = "file_lock", since = "CURRENT_RUSTC_VERSION ")]
883
+ #[unstable (feature = "file_lock", issue = "130994 ")]
879
884
pub fn unlock(&self) -> io::Result<()> {
880
885
self.inner.unlock()
881
886
}
0 commit comments