Skip to content

Commit ff24f7e

Browse files
committed
rustc: Use the same diagnostic emmiter for both early errors and the session
This funnels all properly reported errors through a single closure. Yay.
1 parent 9820abf commit ff24f7e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/comp/driver/driver.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,8 @@ fn build_session(sopts: @session::options, input: str,
461461
sopts.target_triple,
462462
sopts.addl_lib_search_paths);
463463
let codemap = codemap::new_codemap();
464-
let diagnostic_handler = diagnostic::mk_codemap_handler(codemap, none);
464+
let diagnostic_handler =
465+
diagnostic::mk_codemap_handler(codemap, some(demitter));
465466
@{targ_cfg: target_cfg,
466467
opts: sopts,
467468
cstore: cstore,

0 commit comments

Comments
 (0)