about summary refs log tree commit diff
path: root/src/libsyntax/errors/emitter.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsyntax/errors/emitter.rs')
-rw-r--r--src/libsyntax/errors/emitter.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libsyntax/errors/emitter.rs b/src/libsyntax/errors/emitter.rs
index 2b29de7fd71..7cad1714625 100644
--- a/src/libsyntax/errors/emitter.rs
+++ b/src/libsyntax/errors/emitter.rs
@@ -131,6 +131,9 @@ pub struct EmitterWriter {
     dst: Destination,
     registry: Option<diagnostics::registry::Registry>,
     cm: Rc<codemap::CodeMap>,
+
+    /// Is this the first error emitted thus far? If not, we emit a
+    /// `\n` before the top-level errors.
     first: bool,
 }
 
@@ -172,7 +175,9 @@ impl EmitterWriter {
             EmitterWriter { dst: dst, registry: registry, cm: code_map, first: true }
         } else {
             EmitterWriter { dst: Raw(Box::new(io::stderr())),
-                registry: registry, cm: code_map, first: true }
+                            registry: registry,
+                            cm: code_map,
+                            first: true }
         }
     }