about summary refs log tree commit diff
path: root/compiler/rustc_plugin_impl/src
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2023-03-11 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2023-03-11 17:04:41 +0100
commitc21f1d09de3a6a7bb4952f400919e936032b8ee2 (patch)
tree766aca0c8bc2f800c45056480f50dfaf804aab10 /compiler/rustc_plugin_impl/src
parente350fe4e608b653da47e8012d13ef701613e717b (diff)
downloadrust-c21f1d09de3a6a7bb4952f400919e936032b8ee2.tar.gz
rust-c21f1d09de3a6a7bb4952f400919e936032b8ee2.zip
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