diff options
| author | Slanterns <slanterns.w@gmail.com> | 2024-04-12 02:27:58 +0800 |
|---|---|---|
| committer | Slanterns <slanterns.w@gmail.com> | 2024-04-12 02:27:58 +0800 |
| commit | cf836bcc3c1a3c630f40ceb68e2378bafb33b12b (patch) | |
| tree | 3f7d6d1377897a80665a19a8a1c2fd845950c070 /library/std/src | |
| parent | 72fe8a0f0049873f4b1d0ab3c482170921819106 (diff) | |
| download | rust-cf836bcc3c1a3c630f40ceb68e2378bafb33b12b.tar.gz rust-cf836bcc3c1a3c630f40ceb68e2378bafb33b12b.zip | |
Stabilize `Seek::seek_relative`
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/io/mod.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/library/std/src/io/mod.rs b/library/std/src/io/mod.rs index 980b3e7aa48..c0a82f5b605 100644 --- a/library/std/src/io/mod.rs +++ b/library/std/src/io/mod.rs @@ -2055,7 +2055,6 @@ pub trait Seek { /// # Example /// /// ```no_run - /// #![feature(seek_seek_relative)] /// use std::{ /// io::{self, Seek}, /// fs::File, @@ -2070,7 +2069,7 @@ pub trait Seek { /// ``` /// /// [`BufReader`]: crate::io::BufReader - #[unstable(feature = "seek_seek_relative", issue = "117374")] + #[stable(feature = "seek_seek_relative", since = "CURRENT_RUSTC_VERSION")] fn seek_relative(&mut self, offset: i64) -> Result<()> { self.seek(SeekFrom::Current(offset))?; Ok(()) |
