specialize io::copy to use the memory of the writer if it is a BufWriter

This commit is contained in:
The8472 2020-11-01 19:59:24 +01:00
parent 0e63af5da3
commit 4105506656
4 changed files with 138 additions and 8 deletions

View file

@ -283,6 +283,7 @@
#![feature(maybe_uninit_extra)]
#![feature(maybe_uninit_ref)]
#![feature(maybe_uninit_slice)]
#![feature(maybe_uninit_uninit_array)]
#![feature(min_specialization)]
#![feature(needs_panic_runtime)]
#![feature(negative_impls)]
@ -326,6 +327,7 @@
#![feature(unsafe_cell_raw_get)]
#![feature(unwind_attributes)]
#![feature(vec_into_raw_parts)]
#![feature(vec_spare_capacity)]
#![feature(wake_trait)]
// NB: the above list is sorted to minimize merge conflicts.
#![default_lib_allocator]