about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2015-12-31 18:47:14 +1300
committerNick Cameron <ncameron@mozilla.com>2016-01-15 10:24:12 +1300
commitb976d9e6660c16f4a1d5a28b11afa7ccb4f75da6 (patch)
tree7838d2d7d0bb08bf607bc4108c83e1822d58d33f /src/libsyntax/parse
parentfd46c78f8f5bc760a46c36fc03f97d43ac389db6 (diff)
downloadrust-b976d9e6660c16f4a1d5a28b11afa7ccb4f75da6.tar.gz
rust-b976d9e6660c16f4a1d5a28b11afa7ccb4f75da6.zip
Implement JSON error emission
[breaking-change]

syntax::errors::Handler::new has been renamed to with_tty_emitter

Many functions which used to take a syntax::errors::ColorConfig, now take a rustc::session::config::ErrorOutputType. If you previously used ColorConfig::Auto as a default, you should now use ErrorOutputType::default().
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 a1224565501..090b070433f 100644
--- a/src/libsyntax/parse/mod.rs
+++ b/src/libsyntax/parse/mod.rs
@@ -49,7 +49,7 @@ pub struct ParseSess {
 impl ParseSess {
     pub fn new() -> ParseSess {
         let cm = Rc::new(CodeMap::new());
-        let handler = Handler::new(ColorConfig::Auto, None, true, false, cm.clone());
+        let handler = Handler::with_tty_emitter(ColorConfig::Auto, None, true, false, cm.clone());
         ParseSess::with_span_handler(handler, cm)
     }