]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #12414 : DaGenix/rust/failing-iterator-wrappers, r=alexcrichton
authorbors <bors@rust-lang.org>
Thu, 13 Mar 2014 06:51:40 +0000 (23:51 -0700)
committerbors <bors@rust-lang.org>
Thu, 13 Mar 2014 06:51:40 +0000 (23:51 -0700)
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

1  2 
src/libstd/io/mod.rs

Simple merge