about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Schneider <github35764891676564198441@oli-obk.de>2018-07-21 16:09:10 +0200
committerOliver Schneider <github35764891676564198441@oli-obk.de>2018-07-21 16:09:10 +0200
commitbab5eb41a7f3f755708527d97a1f8bf09b15d570 (patch)
treee2a99d1276c62124bcec9a134cbc0dae7ed69a3f
parente93635325b52eb79b5c279d2fad4b325dd44876a (diff)
downloadrust-bab5eb41a7f3f755708527d97a1f8bf09b15d570.tar.gz
rust-bab5eb41a7f3f755708527d97a1f8bf09b15d570.zip
Sequence-field should have plural name
-rw-r--r--src/librustc_errors/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc_errors/lib.rs b/src/librustc_errors/lib.rs
index 06c49b3a103..c0f07645f49 100644
--- a/src/librustc_errors/lib.rs
+++ b/src/librustc_errors/lib.rs
@@ -274,7 +274,7 @@ pub struct Handler {
     err_count: AtomicUsize,
     emitter: Lock<Box<dyn Emitter + sync::Send>>,
     continue_after_error: LockCell<bool>,
-    delayed_span_bug: Lock<Vec<Diagnostic>>,
+    delayed_span_bugs: Lock<Vec<Diagnostic>>,
 
     // This set contains the `DiagnosticId` of all emitted diagnostics to avoid
     // emitting the same diagnostic with extended help (`--teach`) twice, which
@@ -306,7 +306,7 @@ pub struct HandlerFlags {
 impl Drop for Handler {
     fn drop(&mut self) {
         if self.err_count() == 0 {
-            let mut bugs = self.delayed_span_bug.borrow_mut();
+            let mut bugs = self.delayed_span_bugs.borrow_mut();
             let has_bugs = !bugs.is_empty();
             for bug in bugs.drain(..) {
                 DiagnosticBuilder::new_diagnostic(self, bug).emit();
@@ -362,7 +362,7 @@ impl Handler {
             err_count: AtomicUsize::new(0),
             emitter: Lock::new(e),
             continue_after_error: LockCell::new(true),
-            delayed_span_bug: Lock::new(Vec::new()),
+            delayed_span_bugs: Lock::new(Vec::new()),
             taught_diagnostics: Lock::new(FxHashSet()),
             emitted_diagnostic_codes: Lock::new(FxHashSet()),
             emitted_diagnostics: Lock::new(FxHashSet()),
@@ -530,7 +530,7 @@ impl Handler {
         if self.flags.report_delayed_bugs {
             DiagnosticBuilder::new_diagnostic(self, diagnostic.clone()).emit();
         }
-        self.delayed_span_bug.borrow_mut().push(diagnostic);
+        self.delayed_span_bugs.borrow_mut().push(diagnostic);
     }
     pub fn span_bug_no_panic<S: Into<MultiSpan>>(&self, sp: S, msg: &str) {
         self.emit(&sp.into(), msg, Bug);