about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorThe 8472 <git@infinite-source.de>2023-06-06 01:09:05 +0200
committerThe 8472 <git@infinite-source.de>2023-06-17 11:07:04 +0200
commit373878573569371be876bb838607c64076f17f49 (patch)
treefe0b0e07262cbb835d319b36336c512c26bfe972 /compiler/rustc_codegen_llvm/src
parent1d7d82472617a4a0fea59c7e239c8a48c8ac5c34 (diff)
downloadrust-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