about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-10-18 11:52:23 -0700
committerAlex Crichton <alex@alexcrichton.com>2013-10-24 14:21:57 -0700
commit6b70ddfba1ed5fca7fa67e5f2d2691e9c667d3a3 (patch)
treec5f2dbd75d45048ff68121ac870bde1ae34d2cd3 /src/libsyntax/parse
parente117aa0e2a4121aab101cb7526a5e79812bfb76e (diff)
downloadrust-6b70ddfba1ed5fca7fa67e5f2d2691e9c667d3a3.tar.gz
rust-6b70ddfba1ed5fca7fa67e5f2d2691e9c667d3a3.zip
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.
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/mod.rs4
1 files changed, 1 insertions, 3 deletions
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<Span>)
     };
     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) => {