Skip to content

Commit c501959

Browse files
authored
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.
2 parents 83524b9 + 3761849 commit c501959

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: std/src/sys/pal/unix/l4re.rs

+4
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ pub mod net {
5454
unimpl!();
5555
}
5656

57+
pub fn read_buf(&self, _: BorrowedCursor<'_>) -> io::Result<()> {
58+
unimpl!();
59+
}
60+
5761
pub fn read_vectored(&self, _: &mut [IoSliceMut<'_>]) -> io::Result<usize> {
5862
unimpl!();
5963
}

0 commit comments

Comments
 (0)