about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2019-09-07 10:20:56 -0400
committerMark Rousskov <mark.simulacrum@gmail.com>2019-09-17 09:30:44 -0400
commit2a3930d43ced5204f53a6e1eebd741a81c4c1e9a (patch)
treeda19271a9c9d09248d140005079c02c8fde5718f /src/libsyntax/parse
parent0b586b436d6ea2dddc213c18bf17f2314441c32f (diff)
downloadrust-2a3930d43ced5204f53a6e1eebd741a81c4c1e9a.tar.gz
rust-2a3930d43ced5204f53a6e1eebd741a81c4c1e9a.zip
Privatize DiagnosticBuilder constructors
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs
index 2441a027f99..c4f31bcd9b0 100644
--- a/src/libsyntax/parse/mod.rs
+++ b/src/libsyntax/parse/mod.rs
@@ -306,7 +306,7 @@ fn file_to_source_file(sess: &ParseSess, path: &Path, spanopt: Option<Span>)
     match try_file_to_source_file(sess, path, spanopt) {
         Ok(source_file) => source_file,
         Err(d) => {
-            DiagnosticBuilder::new_diagnostic(&sess.span_diagnostic, d).emit();
+            sess.span_diagnostic.emit_diagnostic(&d);
             FatalError.raise();
         }
     }