Skip to content

Commit 77e95dc

Browse files
committed
rustc: Rename emit_diagnostic to emit
1 parent ff24f7e commit 77e95dc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/comp/driver/diagnostic.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import io::writer_util;
33
import syntax::codemap;
44
import codemap::span;
55

6-
export emitter, emit_diagnostic;
6+
export emitter, emit;
77
export level, fatal, error, warning, note;
88
export handler, mk_codemap_handler;
99

@@ -89,7 +89,7 @@ fn mk_codemap_handler(cm: codemap::codemap,
8989
none. {
9090
let f = fn@(cmsp: option<(codemap::codemap, span)>,
9191
msg: str, t: level) {
92-
emit_diagnostic(cmsp, msg, t);
92+
emit(cmsp, msg, t);
9393
};
9494
f
9595
}
@@ -141,8 +141,8 @@ fn print_diagnostic(topic: str, lvl: level, msg: str) {
141141
io::stdout().write_str(#fmt[" %s\n", msg]);
142142
}
143143

144-
fn emit_diagnostic(cmsp: option<(codemap::codemap, span)>,
145-
msg: str, lvl: level) {
144+
fn emit(cmsp: option<(codemap::codemap, span)>,
145+
msg: str, lvl: level) {
146146
alt cmsp {
147147
some((cm, sp)) {
148148
let ss = codemap::span_to_str(sp, cm);

src/comp/driver/rustc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ fn main(args: [str]) {
7272

7373
let demitter = fn@(cmsp: option<(codemap::codemap, codemap::span)>,
7474
msg: str, lvl: diagnostic::level) {
75-
diagnostic::emit_diagnostic(cmsp, msg, lvl);
75+
diagnostic::emit(cmsp, msg, lvl);
7676
};
7777

7878
let match =

0 commit comments

Comments
 (0)