rustc: Allow a custom diagnostic emitter when building the handler
This commit is contained in:
parent
7cbd90f501
commit
e4849d5e5d
5 changed files with 36 additions and 17 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue