mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
rustc: Stop exporting various things from driver::diagnostic
This commit is contained in:
parent
ced0aa13d3
commit
da6674baed
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user