Test fixes and rebase conflicts

This commit is contained in:
Alex Crichton 2015-01-20 12:35:51 -08:00
parent eace6afed2
commit 631896dc19
2 changed files with 6 additions and 8 deletions

View file

@ -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!()
}
};