Skip to content

Commit

Permalink
Rollup merge of rust-lang#129913 - saethlin:l4re-read-buf, r=Noratrieb
Browse files Browse the repository at this point in the history
Add missing read_buf stub for x86_64-unknown-l4re-uclibc

Before this PR, `x check library/std --target x86_64-unknown-l4re-uclibc` will fail with
```
error[E0599]: no method named `read_buf` found for struct `Socket` in the current scope
   --> std/src/os/unix/net/stream.rs:598:16
    |
598 |         self.0.read_buf(buf)
    |                ^^^^^^^^
    |
   ::: std/src/sys/pal/unix/l4re.rs:23:5
    |
23  |     pub struct Socket(FileDesc);
    |     ----------------- method `read_buf` not found for this struct
    |
    = help: items from traits can only be used if the trait is implemented and in scope
```

This target doesn't have a maintainer to cc.
  • Loading branch information
matthiaskrgr authored Sep 3, 2024
2 parents 83524b9 + 3761849 commit c501959
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions std/src/sys/pal/unix/l4re.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ pub mod net {
unimpl!();
}

pub fn read_buf(&self, _: BorrowedCursor<'_>) -> io::Result<()> {
unimpl!();
}

pub fn read_vectored(&self, _: &mut [IoSliceMut<'_>]) -> io::Result<usize> {
unimpl!();
}
Expand Down

0 comments on commit c501959

Please sign in to comment.