From da6674baedce9fc86b01ea805f4487e30a1df093 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Fri, 13 Jan 2012 16:07:23 -0800 Subject: [PATCH] rustc: Stop exporting various things from driver::diagnostic --- src/comp/driver/diagnostic.rs | 3 +-- src/comp/driver/driver.rs | 2 +- 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; }