Skip to content

Commit

Permalink
Unrolled build for rust-lang#123817
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#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: rust-lang#117374.
Implementation PR: rust-lang#116750.

FCPs already completed in the tracking issue.

Closes rust-lang#117374.

r? libs-api
  • Loading branch information
rust-timer authored May 13, 2024
2 parents 030a12c + cf836bc commit ac41987
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/std/src/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2044,7 +2044,6 @@ pub trait Seek {
/// # Example
///
/// ```no_run
/// #![feature(seek_seek_relative)]
/// use std::{
/// io::{self, Seek},
/// fs::File,
Expand All @@ -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(())
Expand Down

0 comments on commit ac41987

Please sign in to comment.