Skip to content

Commit

Permalink
Unrolled build for rust-lang#137205
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#137205 - thaliaarchi:remove-wasi-fileext-tell, r=alexcrichton

Remove `std::os::wasi::fs::FileExt::tell`

Following rust-lang#137165 (Use `tell` for `<File as Seek>::stream_position`), `tell` is now directly exposed via `stream_position`, making `<File as FileExt>::tell` redundant. Remove it.

`std::os::wasi::fs::FileExt::tell` is currently unstable and tracked in rust-lang#71213.

``@rustbot`` ping wasi
  • Loading branch information
rust-timer authored Feb 18, 2025
2 parents 3b022d8 + d2f1597 commit 5c2a6bf
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions library/std/src/os/wasi/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,6 @@ pub trait FileExt {
Ok(())
}

/// Returns the current position within the file.
///
/// This corresponds to the `fd_tell` syscall and is similar to
/// `seek` where you offset 0 bytes from the current position.
#[doc(alias = "fd_tell")]
fn tell(&self) -> io::Result<u64>;

/// Adjusts the flags associated with this file.
///
/// This corresponds to the `fd_fdstat_set_flags` syscall.
Expand Down Expand Up @@ -240,10 +233,6 @@ impl FileExt for fs::File {
self.as_inner().as_inner().pwrite(bufs, offset)
}

fn tell(&self) -> io::Result<u64> {
self.as_inner().as_inner().tell()
}

fn fdstat_set_flags(&self, flags: u16) -> io::Result<()> {
self.as_inner().as_inner().set_flags(flags)
}
Expand Down

0 comments on commit 5c2a6bf

Please sign in to comment.