]> git.lizzy.rs Git - rust.git/commit
Update io iterators to produce IoResults
authorPalmer Cox <p@lmercox.com>
Thu, 20 Feb 2014 02:53:46 +0000 (21:53 -0500)
committerPalmer Cox <p@lmercox.com>
Thu, 13 Mar 2014 02:42:50 +0000 (22:42 -0400)
commit9ba6bb5a71adeb861f8bf21c2b1f2fde3132480d
tree8b334634887fcd0a6ba5a2ed926aec010386fc05
parent2eebeb81372e320510a1c1e2eef96eb5146a1e1f
Update io iterators to produce IoResults

Most IO related functions return an IoResult so that the caller can handle failure
in whatever way is appropriate. However, the `lines`, `bytes`, and `chars` iterators all
supress errors. This means that code that needs to handle errors can't use any of these
iterators. All three of these iterators were updated to produce IoResults.

Fixes #12368
src/compiletest/errors.rs
src/compiletest/header.rs
src/libstd/io/buffered.rs
src/libstd/io/extensions.rs
src/libstd/io/mod.rs
src/test/bench/shootout-k-nucleotide-pipes.rs
src/test/bench/sudoku.rs