about summary refs log tree commit diff
path: root/compiler/rustc_plugin_impl/src
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2023-03-19 15:33:58 +0530
committerGitHub <noreply@github.com>2023-03-19 15:33:58 +0530
commit654204f455332618f55dd808e9fe4fc4ae1d6a2f (patch)
tree4b53b762c6146a97e5ef92ad2893be979ea03edd /compiler/rustc_plugin_impl/src
parent462e7e7a100eeb6f7ff3bfaa66464ff0ab1aa0ad (diff)
parentc21f1d09de3a6a7bb4952f400919e936032b8ee2 (diff)
downloadrust-654204f455332618f55dd808e9fe4fc4ae1d6a2f.tar.gz
rust-654204f455332618f55dd808e9fe4fc4ae1d6a2f.zip
Rollup merge of #109022 - tmiasko:read-buf-exact, r=dtolnay
read_buf_exact: on error, all read bytes are appended to the buffer

Guarantee that when `read_buf_exact` returns, all bytes read will be
appended to the buffer. Including the case when the operations fails.

The motivating use case are operations on a non-blocking reader. When
`read_buf_exact` fails with `ErrorKind::WouldBlock` error, the operation
can be resumed at a later time.
Diffstat (limited to 'compiler/rustc_plugin_impl/src')
0 files changed, 0 insertions, 0 deletions