diff options
| author | bors <bors@rust-lang.org> | 2018-10-21 17:26:16 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-10-21 17:26:16 +0000 |
| commit | 12a88a6b098ce24038beb4857f3bba7ebe078c6b (patch) | |
| tree | d6375bdb917d783b695a0c0f09c88effc92cfed4 /src/libsyntax/parse | |
| parent | 0e2f91205030e3f922110f97028984ffd682f088 (diff) | |
| parent | 21d67c45a3d032b3f0d421e6f882f11ea43d1f9c (diff) | |
| download | rust-12a88a6b098ce24038beb4857f3bba7ebe078c6b.tar.gz rust-12a88a6b098ce24038beb4857f3bba7ebe078c6b.zip | |
Auto merge of #55236 - petrochenkov:pfail, r=davidtwco
Move parse-fail tests to UI cc https://github.com/rust-lang/rust/issues/53353 r? @davidtwco
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index 5c6d5816a47..a4b8ab86f37 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -230,7 +230,7 @@ fn file_to_source_file(sess: &ParseSess, path: &Path, spanopt: Option<Span>) match sess.source_map().load_file(path) { Ok(source_file) => source_file, Err(e) => { - let msg = format!("couldn't read {:?}: {}", path.display(), e); + let msg = format!("couldn't read {}: {}", path.display(), e); match spanopt { Some(sp) => sess.span_diagnostic.span_fatal(sp, &msg).raise(), None => sess.span_diagnostic.fatal(&msg).raise() |
