Skip to content

Commit 659cf2e

Browse files
committed
---
yaml --- r: 174451 b: refs/heads/batch c: 61eb6b4 h: refs/heads/master i: 174449: cfb482a 174447: 5e41bad v: v3
1 parent 1f7ab50 commit 659cf2e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2929
refs/heads/issue-18208-method-dispatch-2: 9e1eae4fb9b6527315b4441cf8a0f5ca911d1671
3030
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
32-
refs/heads/batch: 7cd3311e02b63c57269024b515560041f0ef5957
32+
refs/heads/batch: 61eb6b452d1e6b7876334cde730fd4bc7df9e9eb
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 44a287e6eb22ec3c2a687fc156813577464017f7
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928

branches/batch/src/libsyntax/parse/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,10 @@ pub fn file_to_filemap(sess: &ParseSess, path: &Path, spanopt: Option<Span>)
253253
let bytes = match File::open(path).read_to_end() {
254254
Ok(bytes) => bytes,
255255
Err(e) => {
256-
err(&format!("couldn't read {:?}: {:?}",
256+
let error_msg = e.desc;
257+
err(&format!("couldn't read {:?}: {}",
257258
path.display(),
258-
e)[]);
259+
error_msg)[]);
259260
unreachable!()
260261
}
261262
};

0 commit comments

Comments
 (0)