diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-02-19 18:52:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-19 18:52:06 +0100 |
| commit | ce72b8d91e091eb3178cd91bd8f9a01f48f88abc (patch) | |
| tree | 19cd22362b21c8e49c99fa67cb51c4bba35d5690 | |
| parent | e6406ad4dd75d5349226534e9210b40ca0e31c77 (diff) | |
| parent | 82af73dd4c58cd6bec5fb44cf02f7ac96b1ed48b (diff) | |
| download | rust-ce72b8d91e091eb3178cd91bd8f9a01f48f88abc.tar.gz rust-ce72b8d91e091eb3178cd91bd8f9a01f48f88abc.zip | |
Rollup merge of #136794 - cberner:stabilize, r=joshtriplett
Stabilize file_lock Closes #130994
| -rw-r--r-- | library/std/src/fs.rs | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs index 340ddf1e120..57e235c3efe 100644 --- a/library/std/src/fs.rs +++ b/library/std/src/fs.rs @@ -664,7 +664,6 @@ impl File { /// # Examples /// /// ```no_run - /// #![feature(file_lock)] /// use std::fs::File; /// /// fn main() -> std::io::Result<()> { @@ -673,7 +672,7 @@ impl File { /// Ok(()) /// } /// ``` - #[unstable(feature = "file_lock", issue = "130994")] + #[stable(feature = "file_lock", since = "CURRENT_RUSTC_VERSION")] pub fn lock(&self) -> io::Result<()> { self.inner.lock() } @@ -717,7 +716,6 @@ impl File { /// # Examples /// /// ```no_run - /// #![feature(file_lock)] /// use std::fs::File; /// /// fn main() -> std::io::Result<()> { @@ -726,7 +724,7 @@ impl File { /// Ok(()) /// } /// ``` - #[unstable(feature = "file_lock", issue = "130994")] + #[stable(feature = "file_lock", since = "CURRENT_RUSTC_VERSION")] pub fn lock_shared(&self) -> io::Result<()> { self.inner.lock_shared() } @@ -775,7 +773,6 @@ impl File { /// # Examples /// /// ```no_run - /// #![feature(file_lock)] /// use std::fs::File; /// /// fn main() -> std::io::Result<()> { @@ -784,7 +781,7 @@ impl File { /// Ok(()) /// } /// ``` - #[unstable(feature = "file_lock", issue = "130994")] + #[stable(feature = "file_lock", since = "CURRENT_RUSTC_VERSION")] pub fn try_lock(&self) -> io::Result<bool> { self.inner.try_lock() } @@ -832,7 +829,6 @@ impl File { /// # Examples /// /// ```no_run - /// #![feature(file_lock)] /// use std::fs::File; /// /// fn main() -> std::io::Result<()> { @@ -841,7 +837,7 @@ impl File { /// Ok(()) /// } /// ``` - #[unstable(feature = "file_lock", issue = "130994")] + #[stable(feature = "file_lock", since = "CURRENT_RUSTC_VERSION")] pub fn try_lock_shared(&self) -> io::Result<bool> { self.inner.try_lock_shared() } @@ -869,7 +865,6 @@ impl File { /// # Examples /// /// ```no_run - /// #![feature(file_lock)] /// use std::fs::File; /// /// fn main() -> std::io::Result<()> { @@ -879,7 +874,7 @@ impl File { /// Ok(()) /// } /// ``` - #[unstable(feature = "file_lock", issue = "130994")] + #[stable(feature = "file_lock", since = "CURRENT_RUSTC_VERSION")] pub fn unlock(&self) -> io::Result<()> { self.inner.unlock() } |
