diff options
| author | Steven Fackler <sfackler@gmail.com> | 2015-01-10 17:32:54 -0800 |
|---|---|---|
| committer | Steven Fackler <sfackler@gmail.com> | 2015-01-10 17:32:54 -0800 |
| commit | b4fae2fba99e713a6d6a8a59caaf1cfba847b50e (patch) | |
| tree | 3e029277b399285fc863062896c1a4ed8ea0678a /src/rustllvm/RustWrapper.cpp | |
| parent | 099b411e080d302ec0dc5f3aebe53d76c50acfc7 (diff) | |
| download | rust-b4fae2fba99e713a6d6a8a59caaf1cfba847b50e.tar.gz rust-b4fae2fba99e713a6d6a8a59caaf1cfba847b50e.zip | |
Implement Show for types in std::io::{buffered,util}
A derived implementation would not be appropriate for the Buffered types since the buffer is both huge (64k by default) and full of uninitialized memory. Instead of printing the whole thing, we display how full it is. I also altered MultiWriter to make it generic over Writers instead of taking Box<Writer> trait objects. Box<Writer> implements Writer so existing use cases should continue to work, and this enables a more useful Show implementation in applicable cases. The change to MultiWriter may break code that uses it, but any fixes should be easy. [breaking-change]
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
