mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 10:05:06 +03:00
6cbba7c54e
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