From f6496cd3700a9a4e3dc1a6d3245287066f4b99e4 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Tue, 26 Apr 2016 13:06:28 -0400 Subject: Nit: address various style nits --- src/libsyntax/errors/emitter.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/libsyntax/errors/emitter.rs') 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, cm: Rc, + + /// 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 } } } -- cgit 1.4.1-3-g733a5