From cf836bcc3c1a3c630f40ceb68e2378bafb33b12b Mon Sep 17 00:00:00 2001 From: Slanterns Date: Fri, 12 Apr 2024 02:27:58 +0800 Subject: [PATCH] Stabilize `Seek::seek_relative` --- library/std/src/io/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 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(())