about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorSlanterns <slanterns.w@gmail.com>2024-04-12 02:27:58 +0800
committerSlanterns <slanterns.w@gmail.com>2024-04-12 02:27:58 +0800
commitcf836bcc3c1a3c630f40ceb68e2378bafb33b12b (patch)
tree3f7d6d1377897a80665a19a8a1c2fd845950c070 /library/std/src
parent72fe8a0f0049873f4b1d0ab3c482170921819106 (diff)
downloadrust-cf836bcc3c1a3c630f40ceb68e2378bafb33b12b.tar.gz
rust-cf836bcc3c1a3c630f40ceb68e2378bafb33b12b.zip
Stabilize `Seek::seek_relative`
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/io/mod.rs3
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(())