Skip to content

Commit 22f6b1b

Browse files
committed
---
yaml --- r: 7266 b: refs/heads/master c: 77e95dc h: refs/heads/master v: v3
1 parent d9c9da0 commit 22f6b1b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: ff24f7e583f1adc88c37e27be17e1d7cb69adc6e
2+
refs/heads/master: 77e95dcf9f7bdaf4f73c780ccba8f32ab7e00f1a

trunk/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);

trunk/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)