diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2016-04-26 13:06:28 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2016-05-02 11:49:24 -0400 |
| commit | f6496cd3700a9a4e3dc1a6d3245287066f4b99e4 (patch) | |
| tree | 8ab515fce8236447b7c75607eb150d0d91225879 /src/libsyntax/errors/emitter.rs | |
| parent | d5529f000da43fe2e9f2aad03f747b0144da9354 (diff) | |
| download | rust-f6496cd3700a9a4e3dc1a6d3245287066f4b99e4.tar.gz rust-f6496cd3700a9a4e3dc1a6d3245287066f4b99e4.zip | |
Nit: address various style nits
Diffstat (limited to 'src/libsyntax/errors/emitter.rs')
| -rw-r--r-- | src/libsyntax/errors/emitter.rs | 7 |
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 } } } |
