about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-01-15 01:52:01 +0000
committerbors <bors@rust-lang.org>2016-01-15 01:52:01 +0000
commitd8869d3487a569b4a6b86c1b585cc15db48abc4a (patch)
treef061c00a00e41e3518bf7f8b16579b5853ac6b3b /src/libsyntax/parse
parent2fb0c5ebcf6d912224532265776fb96febea9797 (diff)
parent82f8e5ce84c83b02fbfa720c6841f12db1a55603 (diff)
downloadrust-d8869d3487a569b4a6b86c1b585cc15db48abc4a.tar.gz
rust-d8869d3487a569b4a6b86c1b585cc15db48abc4a.zip
Auto merge of #30711 - nrc:json-errs, r=huonw
The compiler can emit errors and warning in JSON format. This is a more easily machine readable form then the usual error output.

Closes #10492, closes #14863.
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)
     }