about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-12-06 20:12:13 +0000
committerbors <bors@rust-lang.org>2014-12-06 20:12:13 +0000
commitde83d7dd191bf5564855057a29f9b5d9dcfcb201 (patch)
treeb90665fb9f4eeadbe858564f89b9b8c454a9bacf /src/libstd/sys/unix/stack_overflow.rs
parent358db12a89d6edf4a61cb3c8d170449faea925cc (diff)
parent72bc461ce3f34fca3aac87c83c0a7c606e9aecee (diff)
downloadrust-de83d7dd191bf5564855057a29f9b5d9dcfcb201.tar.gz
rust-de83d7dd191bf5564855057a29f9b5d9dcfcb201.zip
auto merge of #19431 : erickt/rust/buf-writer-error, r=alexcrichton
Previously, `BufWriter::write` would just return an `std::io::OtherIoError` if someone attempted to write past the end of the wrapped buffer. This pull request changes the error to support partial writes and return a `std::io::ShortWrite`, or an `io::io::EndOfFile` if it's been fully exhausted.

 I've also optimized away a bounds check inside `BufWriter::write`, which should help shave off some nanoseconds in an inner loops.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions