diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-05-13 20:29:18 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-13 20:29:18 +0200 |
| commit | b0cbd4e5f37a02397e617d3f7fe55105858633c2 (patch) | |
| tree | 994a7fa32cc99603cf8841990aa966f042209a75 | |
| parent | cf8a084d26ef23b4907092f15010c9449e9bd9a7 (diff) | |
| parent | cf836bcc3c1a3c630f40ceb68e2378bafb33b12b (diff) | |
| download | rust-b0cbd4e5f37a02397e617d3f7fe55105858633c2.tar.gz rust-b0cbd4e5f37a02397e617d3f7fe55105858633c2.zip | |
Rollup merge of #123817 - slanterns:seek_relative, r=dtolnay
Stabilize `seek_seek_relative`
This PR stabilizes `seek_seek_relative`:
```rust
// std::io::Seek
trait Seek {
fn seek_relative(&mut self, offset: i64) -> Result<()>;
}
```
<br>
Tracking issue: https://github.com/rust-lang/rust/issues/117374.
Implementation PR: https://github.com/rust-lang/rust/pull/116750.
FCPs already completed in the tracking issue.
Closes https://github.com/rust-lang/rust/issues/117374.
r? libs-api
| -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 5c6e7b7bd50..f55ec1588f9 100644 --- a/library/std/src/io/mod.rs +++ b/library/std/src/io/mod.rs @@ -2044,7 +2044,6 @@ pub trait Seek { /// # Example /// /// ```no_run - /// #![feature(seek_seek_relative)] /// use std::{ /// io::{self, Seek}, /// fs::File, @@ -2059,7 +2058,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(()) |
