From 6b70ddfba1ed5fca7fa67e5f2d2691e9c667d3a3 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 18 Oct 2013 11:52:23 -0700 Subject: Remove io::read_error The general idea is to remove conditions completely from I/O, so in the meantime remove the read_error condition to mean the same thing as the io_error condition. --- src/libsyntax/parse/mod.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index 93e5d3dd772..fad9eab7542 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -271,9 +271,7 @@ pub fn file_to_filemap(sess: @mut ParseSess, path: &Path, spanopt: Option) }; let mut error = None; let bytes = do io::io_error::cond.trap(|e| error = Some(e)).inside { - do io::read_error::cond.trap(|e| error = Some(e)).inside { - path.open_reader(io::Open).read_to_end() - } + path.open_reader(io::Open).read_to_end() }; match error { Some(e) => { -- cgit 1.4.1-3-g733a5