about summary refs log tree commit diff
path: root/src/comp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-01-13 23:22:30 -0800
committerBrian Anderson <banderson@mozilla.com>2012-01-14 15:14:43 -0800
commitff24f7e583f1adc88c37e27be17e1d7cb69adc6e (patch)
tree0ee6fc91da81bc3801667fa4d77582fc9922d910 /src/comp
parent9820abfcc7afa6a1c025a1913472b1c0af5c9412 (diff)
downloadrust-ff24f7e583f1adc88c37e27be17e1d7cb69adc6e.tar.gz
rust-ff24f7e583f1adc88c37e27be17e1d7cb69adc6e.zip
rustc: Use the same diagnostic emmiter for both early errors and the session
This funnels all properly reported errors through a single closure. Yay.
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/driver/driver.rs3
1 files changed, 2 insertions, 1 deletions
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,