diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-01-20 12:35:51 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-01-20 12:35:51 -0800 |
| commit | 631896dc1996d239a532b0ce02d5fe886660149e (patch) | |
| tree | 2cc34760c310fdc65830ea29123c553b02adc790 /src/libsyntax/parse | |
| parent | eace6afed224e57708b9fd9c7e11542c480b7562 (diff) | |
| download | rust-631896dc1996d239a532b0ce02d5fe886660149e.tar.gz rust-631896dc1996d239a532b0ce02d5fe886660149e.zip | |
Test fixes and rebase conflicts
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/mod.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index 8a5a0b0fce7..dd376fe9e10 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -253,10 +253,8 @@ pub fn file_to_filemap(sess: &ParseSess, path: &Path, spanopt: Option<Span>) let bytes = match File::open(path).read_to_end() { Ok(bytes) => bytes, Err(e) => { - let error_msg = e.desc; err(&format!("couldn't read {:?}: {}", - path.display(), - error_msg)[]); + path.display(), e)[]); unreachable!() } }; |
