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
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue