diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2018-08-01 21:46:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-01 21:46:36 +0200 |
| commit | eeb7b6ae093c666084bb0f35e73151dcbe7a93af (patch) | |
| tree | 7fcc3c4c0f66c3d4d26965b8c7ae2f9c599213fd /src/rustllvm/PassWrapper.cpp | |
| parent | 2893bd0e0c752af8c2238bf18181a4b6991bfd78 (diff) | |
| parent | b5ed39ff10f0e46be6e97b577477e0f60234fa0b (diff) | |
| download | rust-eeb7b6ae093c666084bb0f35e73151dcbe7a93af.tar.gz rust-eeb7b6ae093c666084bb0f35e73151dcbe7a93af.zip | |
Rollup merge of #52939 - ljedrz:fix_51746, r=kennytm
Make io::Read::read_to_end consider io::Take::limit Add a custom implementation of `io::Read::read_to_end` for `io::Take` that doesn't reserve the default 32 bytes but rather `Take::limit` if `Take::limit < 32`. It's a conservative adjustment that preserves the default behavior for `Take::limit >= 32`. Fixes #51746.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
