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

@ -104,7 +104,7 @@ fn load_pkg(filename: str) -> option::t<pkg> {
let sess = @{
cm: cm,
mutable next_id: 0,
diagnostic: diagnostic::mk_codemap_handler(cm)
diagnostic: diagnostic::mk_codemap_handler(cm, none)
};
let c = parser::parse_crate_from_crate_file(filename, [], sess);