-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement read_buf for a few more types #108326
Conversation
r? @thomcc (rustbot has picked a reviewer for you, use r? to override) |
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
b19428f
to
94a1cc0
Compare
This comment has been minimized.
This comment has been minimized.
8877d4b
to
58fb78b
Compare
Does this change stable API? It probably should have an ACP regardless... |
There are no changes in public API. It only optimizes the implementation of read_buf (the provided implementation initializes the buffer completely and delegates to read). |
Oh right, of course. Sorry, I'll take a look later. |
Yeah these seem fine. I don't think it's worth blocking rollup since I doubt these types are used much in the compiler. @bors r+ |
Implement read_buf for a few more types Implement read_buf for TcpStream, Stdin, StdinLock, ChildStdout, ChildStderr (and internally for AnonPipe, Handle, Socket), so that it skips buffer initialization. The other provided methods like read_to_string and read_to_end are implemented in terms of read_buf and so benefit from the optimization as well. This commit also implements read_vectored and is_read_vectored where applicable.
Implement read_buf for a few more types Implement read_buf for TcpStream, Stdin, StdinLock, ChildStdout, ChildStderr (and internally for AnonPipe, Handle, Socket), so that it skips buffer initialization. The other provided methods like read_to_string and read_to_end are implemented in terms of read_buf and so benefit from the optimization as well. This commit also implements read_vectored and is_read_vectored where applicable.
Failed in a rollup: @bors r- |
@bors r+ |
⌛ Testing commit defa245 with merge 571328f5d7d4561541e1c5af0884a29b3adbbff1... |
💔 Test failed - checks-actions |
The job Click to see the possible cause of the failure (guessed by this bot)
|
The queue is pretty full, let's try rolling it up anyways so the rollup=always PRs can use the CI time from this |
Rollup of 10 pull requests Successful merges: - rust-lang#106434 (Document `Iterator::sum/product` for Option/Result) - rust-lang#108326 (Implement read_buf for a few more types) - rust-lang#108842 (Enforce non-lifetime-binders in supertrait preds are not object safe) - rust-lang#108896 (new solver: make all goal evaluation able to be automatically rerun ) - rust-lang#109124 (Add `dist.compression-profile` option to control compression speed) - rust-lang#109240 (Walk un-shifted nested `impl Trait` in trait when setting up default trait method assumptions) - rust-lang#109385 (fix typo) - rust-lang#109386 (add myself to mailmap) - rust-lang#109390 (Custom MIR: Support aggregate expressions) - rust-lang#109408 (not *all* retags might be explicit in Runtime MIR) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
In principle, this PR extends rust-lang#108326 for RustyHermit. Signed-off-by: Stefan Lankes <[email protected]>
Implement read_buf for RustHermit In principle, this PR extends rust-lang#108326 for RustyHermit.
Implement read_buf for RustHermit In principle, this PR extends rust-lang#108326 for RustyHermit.
…ad-buf, r=cuviper kmc-solid: Implement `Socket::read_buf` Follow-up to rust-lang#108326. Implements `Socket::read_buf` for the [`*-kmc-solid_*`](https://doc.rust-lang.org/nightly/rustc/platform-support/kmc-solid.html) Tier 3 targets.
In principle, this PR extends rust-lang/rust#108326 for RustyHermit. Signed-off-by: Stefan Lankes <[email protected]>
Implement read_buf for RustHermit In principle, this PR extends rust-lang/rust#108326 for RustyHermit.
Implement read_buf for TcpStream, Stdin, StdinLock, ChildStdout,
ChildStderr (and internally for AnonPipe, Handle, Socket), so
that it skips buffer initialization.
The other provided methods like read_to_string and read_to_end are
implemented in terms of read_buf and so benefit from the optimization
as well.
This commit also implements read_vectored and is_read_vectored where
applicable.