about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorJakub Wieczorek <jakub@jakub.cc>2014-07-01 18:39:41 +0200
committerJakub Wieczorek <jakub@jakub.cc>2014-07-11 00:32:00 +0200
commit9b9cce2316119a2ffdc9556d410e464b7542d64d (patch)
tree42bba2a9583ab3df7a9902e29457d129fba5c310 /src/libsyntax/parse
parent7ab9bfab4e623f67ea32db1ec50f8b79c1514e40 (diff)
downloadrust-9b9cce2316119a2ffdc9556d410e464b7542d64d.tar.gz
rust-9b9cce2316119a2ffdc9556d410e464b7542d64d.zip
Add scaffolding for assigning alpha-numeric codes to rustc diagnostics
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/lexer/mod.rs2
-rw-r--r--src/libsyntax/parse/mod.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/lexer/mod.rs b/src/libsyntax/parse/lexer/mod.rs
index 0aaddacfab6..5c5943f0cd4 100644
--- a/src/libsyntax/parse/lexer/mod.rs
+++ b/src/libsyntax/parse/lexer/mod.rs
@@ -1308,7 +1308,7 @@ mod test {
     use std::io::util;
 
     fn mk_sh() -> diagnostic::SpanHandler {
-        let emitter = diagnostic::EmitterWriter::new(box util::NullWriter);
+        let emitter = diagnostic::EmitterWriter::new(box util::NullWriter, None);
         let handler = diagnostic::mk_handler(box emitter);
         diagnostic::mk_span_handler(handler, CodeMap::new())
     }
diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs
index 37c84c95af6..a3e169cd511 100644
--- a/src/libsyntax/parse/mod.rs
+++ b/src/libsyntax/parse/mod.rs
@@ -40,7 +40,7 @@ pub struct ParseSess {
 
 pub fn new_parse_sess() -> ParseSess {
     ParseSess {
-        span_diagnostic: mk_span_handler(default_handler(Auto), CodeMap::new()),
+        span_diagnostic: mk_span_handler(default_handler(Auto, None), CodeMap::new()),
         included_mod_stack: RefCell::new(Vec::new()),
     }
 }