diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-01-13 23:25:11 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-01-14 15:14:43 -0800 |
| commit | 77e95dcf9f7bdaf4f73c780ccba8f32ab7e00f1a (patch) | |
| tree | 64a491a315b94daf6768ac284f0b03f17ecbafcc | |
| parent | ff24f7e583f1adc88c37e27be17e1d7cb69adc6e (diff) | |
| download | rust-77e95dcf9f7bdaf4f73c780ccba8f32ab7e00f1a.tar.gz rust-77e95dcf9f7bdaf4f73c780ccba8f32ab7e00f1a.zip | |
rustc: Rename emit_diagnostic to emit
| -rw-r--r-- | src/comp/driver/diagnostic.rs | 8 | ||||
| -rw-r--r-- | src/comp/driver/rustc.rs | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/comp/driver/diagnostic.rs b/src/comp/driver/diagnostic.rs index 2536e5ebe16..7021ace445d 100644 --- a/src/comp/driver/diagnostic.rs +++ b/src/comp/driver/diagnostic.rs @@ -3,7 +3,7 @@ import io::writer_util; import syntax::codemap; import codemap::span; -export emitter, emit_diagnostic; +export emitter, emit; export level, fatal, error, warning, note; export handler, mk_codemap_handler; @@ -89,7 +89,7 @@ fn mk_codemap_handler(cm: codemap::codemap, none. { let f = fn@(cmsp: option<(codemap::codemap, span)>, msg: str, t: level) { - emit_diagnostic(cmsp, msg, t); + emit(cmsp, msg, t); }; f } @@ -141,8 +141,8 @@ fn print_diagnostic(topic: str, lvl: level, msg: str) { io::stdout().write_str(#fmt[" %s\n", msg]); } -fn emit_diagnostic(cmsp: option<(codemap::codemap, span)>, - msg: str, lvl: level) { +fn emit(cmsp: option<(codemap::codemap, span)>, + msg: str, lvl: level) { alt cmsp { some((cm, sp)) { let ss = codemap::span_to_str(sp, cm); diff --git a/src/comp/driver/rustc.rs b/src/comp/driver/rustc.rs index e43ca9b53f3..fd450517e58 100644 --- a/src/comp/driver/rustc.rs +++ b/src/comp/driver/rustc.rs @@ -72,7 +72,7 @@ fn main(args: [str]) { let demitter = fn@(cmsp: option<(codemap::codemap, codemap::span)>, msg: str, lvl: diagnostic::level) { - diagnostic::emit_diagnostic(cmsp, msg, lvl); + diagnostic::emit(cmsp, msg, lvl); }; let match = |
