From ff24f7e583f1adc88c37e27be17e1d7cb69adc6e Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Fri, 13 Jan 2012 23:22:30 -0800 Subject: [PATCH] rustc: Use the same diagnostic emmiter for both early errors and the session This funnels all properly reported errors through a single closure. Yay. --- src/comp/driver/driver.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/comp/driver/driver.rs b/src/comp/driver/driver.rs index 0fa471421fc..94c817fc9e6 100644 --- a/src/comp/driver/driver.rs +++ b/src/comp/driver/driver.rs @@ -461,7 +461,8 @@ fn build_session(sopts: @session::options, input: str, sopts.target_triple, sopts.addl_lib_search_paths); let codemap = codemap::new_codemap(); - let diagnostic_handler = diagnostic::mk_codemap_handler(codemap, none); + let diagnostic_handler = + diagnostic::mk_codemap_handler(codemap, some(demitter)); @{targ_cfg: target_cfg, opts: sopts, cstore: cstore,