about summary refs log tree commit diff
path: root/src/comp/driver
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-01-13 16:07:23 -0800
committerBrian Anderson <banderson@mozilla.com>2012-01-13 16:08:59 -0800
commitda6674baedce9fc86b01ea805f4487e30a1df093 (patch)
treedeed4a3dc87882f71154bf0ac0efc1e0e12e3232 /src/comp/driver
parentced0aa13d385df40f21dcb8471326b2a6b08ba0f (diff)
downloadrust-da6674baedce9fc86b01ea805f4487e30a1df093.tar.gz
rust-da6674baedce9fc86b01ea805f4487e30a1df093.zip
rustc: Stop exporting various things from driver::diagnostic
Diffstat (limited to 'src/comp/driver')
-rw-r--r--src/comp/driver/diagnostic.rs3
-rw-r--r--src/comp/driver/driver.rs2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/comp/driver/diagnostic.rs b/src/comp/driver/diagnostic.rs
index 5a425eb8429..c3deede75bb 100644
--- a/src/comp/driver/diagnostic.rs
+++ b/src/comp/driver/diagnostic.rs
@@ -3,8 +3,7 @@ import io::writer_util;
 import syntax::codemap;
 import codemap::span;
 
-export diagnostictype, warning, error, note;
-export print_diagnostic, emit_warning, emit_error, emit_note;
+export emit_warning, emit_error, emit_note;
 
 tag diagnostictype {
     warning;
diff --git a/src/comp/driver/driver.rs b/src/comp/driver/driver.rs
index a2963e7bd91..e9c8cd54c3f 100644
--- a/src/comp/driver/driver.rs
+++ b/src/comp/driver/driver.rs
@@ -580,7 +580,7 @@ fn build_output_filenames(ifile: str,
 }
 
 fn early_error(msg: str) -> ! {
-    diagnostic::print_diagnostic("", diagnostic::error, msg);
+    diagnostic::emit_error(none, msg);
     fail;
 }