about summary refs log tree commit diff
path: root/src/librustc_errors/lib.rs
diff options
context:
space:
mode:
authorJonathan Turner <jturner@mozilla.com>2016-07-07 07:50:49 -0400
committerJonathan Turner <jturner@mozilla.com>2016-07-14 07:57:46 -0400
commita6e7239e7b5db3a96fb6b84c41ecbced64b0ad2e (patch)
treea452e2194147ec387894ab5961690d08de3905a4 /src/librustc_errors/lib.rs
parent55f06883b83bb652d7a8f036c15136abeb933048 (diff)
downloadrust-a6e7239e7b5db3a96fb6b84c41ecbced64b0ad2e.tar.gz
rust-a6e7239e7b5db3a96fb6b84c41ecbced64b0ad2e.zip
Rename emit_struct->emit
Diffstat (limited to 'src/librustc_errors/lib.rs')
-rw-r--r--src/librustc_errors/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_errors/lib.rs b/src/librustc_errors/lib.rs
index e3e63341ee9..7c14c132382 100644
--- a/src/librustc_errors/lib.rs
+++ b/src/librustc_errors/lib.rs
@@ -238,7 +238,7 @@ impl<'a> DiagnosticBuilder<'a> {
             return;
         }
 
-        self.handler.emit.borrow_mut().emit_struct(&self);
+        self.handler.emitter.borrow_mut().emit(&self);
         self.cancel();
         self.handler.panic_if_treat_err_as_bug();
 
@@ -420,7 +420,7 @@ impl<'a> Drop for DiagnosticBuilder<'a> {
 /// others log errors for later reporting.
 pub struct Handler {
     err_count: Cell<usize>,
-    emit: RefCell<Box<Emitter>>,
+    emitter: RefCell<Box<Emitter>>,
     pub can_emit_warnings: bool,
     treat_err_as_bug: bool,
     continue_after_error: Cell<bool>,
@@ -444,7 +444,7 @@ impl Handler {
                         e: Box<Emitter>) -> Handler {
         Handler {
             err_count: Cell::new(0),
-            emit: RefCell::new(e),
+            emitter: RefCell::new(e),
             can_emit_warnings: can_emit_warnings,
             treat_err_as_bug: treat_err_as_bug,
             continue_after_error: Cell::new(true),