diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2023-03-11 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2023-03-11 17:04:41 +0100 |
| commit | c21f1d09de3a6a7bb4952f400919e936032b8ee2 (patch) | |
| tree | 766aca0c8bc2f800c45056480f50dfaf804aab10 /compiler/rustc_plugin_impl/src | |
| parent | e350fe4e608b653da47e8012d13ef701613e717b (diff) | |
| download | rust-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
