diff options
| author | bors <bors@rust-lang.org> | 2014-12-06 20:12:13 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-12-06 20:12:13 +0000 |
| commit | de83d7dd191bf5564855057a29f9b5d9dcfcb201 (patch) | |
| tree | b90665fb9f4eeadbe858564f89b9b8c454a9bacf /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 358db12a89d6edf4a61cb3c8d170449faea925cc (diff) | |
| parent | 72bc461ce3f34fca3aac87c83c0a7c606e9aecee (diff) | |
| download | rust-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
