From: Pietro Albini Date: Wed, 1 Aug 2018 19:46:36 +0000 (+0200) Subject: Rollup merge of #52939 - ljedrz:fix_51746, r=kennytm X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=eeb7b6ae093c666084bb0f35e73151dcbe7a93af;p=rust.git 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. --- eeb7b6ae093c666084bb0f35e73151dcbe7a93af