Add scaffolding for assigning alpha-numeric codes to rustc diagnostics

This commit is contained in:
Jakub Wieczorek
2014-07-01 18:39:41 +02:00
parent 7ab9bfab4e
commit 9b9cce2316
25 changed files with 468 additions and 86 deletions

View File

@@ -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())
}