Skip to content

Commit

Permalink
Unrolled build for rust-lang#129913
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#129913 - saethlin:l4re-read-buf, r=Noratrieb

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
rust-timer authored Sep 3, 2024
2 parents 6199b69 + fcb7d3f commit 510222e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/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 510222e

Please sign in to comment.