diff options
| author | The 8472 <git@infinite-source.de> | 2023-06-06 01:09:05 +0200 |
|---|---|---|
| committer | The 8472 <git@infinite-source.de> | 2023-06-17 11:07:04 +0200 |
| commit | 373878573569371be876bb838607c64076f17f49 (patch) | |
| tree | fe0b0e07262cbb835d319b36336c512c26bfe972 /compiler/rustc_codegen_llvm/src | |
| parent | 1d7d82472617a4a0fea59c7e239c8a48c8ac5c34 (diff) | |
| download | rust-373878573569371be876bb838607c64076f17f49.tar.gz rust-373878573569371be876bb838607c64076f17f49.zip | |
Extend io::copy buffer reuse to BufReader too
previously it was only able to use BufWriter. This was due to a limitation in the BufReader generics that prevented specialization. This change works around the issue by using `where Self: Read` instead of `where I: Read`. This limits our options, e.g. we can't access BufRead methods, but it happens to work out if we rely on some implementation details.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
