rustc: Stop exporting various things from driver::diagnostic

This commit is contained in:
Brian Anderson 2012-01-13 16:07:23 -08:00
parent ced0aa13d3
commit da6674baed
2 changed files with 2 additions and 3 deletions

View File

@ -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;

View File

@ -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;
}