about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2019-12-12 16:47:42 -0800
committerAlex Crichton <alex@alexcrichton.com>2019-12-12 16:51:25 -0800
commit2fee28e7138d8753487ed8895ce0f5f2e643ffad (patch)
treeee10ae4040b5ac9c602e070c3a61dbd607c75f38 /src/test/debuginfo/enum-thinlto.rs
parente9469a6aec2f49fa1e2ae670649f293866932253 (diff)
downloadrust-2fee28e7138d8753487ed8895ce0f5f2e643ffad.tar.gz
rust-2fee28e7138d8753487ed8895ce0f5f2e643ffad.zip
std: Implement `LineWriter::write_vectored`
This commit implements the `write_vectored` method of the `LineWriter`
type. First discovered in bytecodealliance/wasmtime#629 the
`write_vectored` method of `Stdout` bottoms out here but only ends up
writing the first buffer due to the default implementation of
`write_vectored`.

Like `BufWriter`, however, `LineWriter` can have a non-default
implementation of `write_vectored` which tries to preserve the
vectored-ness as much as possible. Namely we can have a vectored write
for everything before the newline and everything after the newline if
all the stars align well.

Also like `BufWriter`, though, special care is taken to ensure that
whenever bytes are written we're sure to signal success since that
represents a "commit" of writing bytes.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions