about summary refs log tree commit diff
path: root/src/comp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-01-13 23:25:11 -0800
committerBrian Anderson <banderson@mozilla.com>2012-01-14 15:14:43 -0800
commit77e95dcf9f7bdaf4f73c780ccba8f32ab7e00f1a (patch)
tree64a491a315b94daf6768ac284f0b03f17ecbafcc /src/comp
parentff24f7e583f1adc88c37e27be17e1d7cb69adc6e (diff)
downloadrust-77e95dcf9f7bdaf4f73c780ccba8f32ab7e00f1a.tar.gz
rust-77e95dcf9f7bdaf4f73c780ccba8f32ab7e00f1a.zip
rustc: Rename emit_diagnostic to emit
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/driver/diagnostic.rs8
-rw-r--r--src/comp/driver/rustc.rs2
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 =