rustc: Allow a custom diagnostic emitter when building the handler

This commit is contained in:
Brian Anderson
2012-01-13 19:00:09 -08:00
parent 7cbd90f501
commit e4849d5e5d
5 changed files with 36 additions and 17 deletions

View File

@@ -194,7 +194,7 @@ fn main(argv: [str]) {
let sess = @{
cm: cm,
mutable next_id: 0,
diagnostic: diagnostic::mk_codemap_handler(cm)
diagnostic: diagnostic::mk_codemap_handler(cm, none)
};
let rd = { ps: pprust::rust_printer(w), w: w };
doc_header(rd, argv[1]);