about summary refs log tree commit diff
path: root/compiler/rustc_plugin_impl/src/errors.rs
diff options
context:
space:
mode:
authornils <48135649+Nilstrieb@users.noreply.github.com>2023-03-21 13:00:21 +0100
committerGitHub <noreply@github.com>2023-03-21 13:00:21 +0100
commit82dc127d7be8ae7aeefed8821b65b1afb2080cf1 (patch)
tree16782a64bdf6dc741208701c470f9036be0d2462 /compiler/rustc_plugin_impl/src/errors.rs
parentcaae551ecba553843059bcbd0ea3a591239176e1 (diff)
parentdefa2456246a8272ceace9c1cdccdf2e4c36175e (diff)
downloadrust-82dc127d7be8ae7aeefed8821b65b1afb2080cf1.tar.gz
rust-82dc127d7be8ae7aeefed8821b65b1afb2080cf1.zip
Rollup merge of #108326 - tmiasko:read-buf, r=thomcc
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.
Diffstat (limited to 'compiler/rustc_plugin_impl/src/errors.rs')
0 files changed, 0 insertions, 0 deletions