From 9e5574803fcc09b855e33b7a71abb304b9cd6c54 Mon Sep 17 00:00:00 2001 From: Jonathan Turner Date: Mon, 23 May 2016 12:50:34 -0400 Subject: Update error format for readability. Add spacing header<->snippet and another line between errors --- src/libsyntax/errors/snippet/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/libsyntax/errors/snippet') diff --git a/src/libsyntax/errors/snippet/mod.rs b/src/libsyntax/errors/snippet/mod.rs index 188e676e7df..414da87b749 100644 --- a/src/libsyntax/errors/snippet/mod.rs +++ b/src/libsyntax/errors/snippet/mod.rs @@ -478,6 +478,13 @@ impl FileInfo { }], kind: RenderedLineKind::PrimaryFileName, }); + output.push(RenderedLine { + text: vec![StyledString { + text: "".to_string(), + style: Style::FileNameStyle, + }], + kind: RenderedLineKind::Annotations, + }); } None => { output.push(RenderedLine { -- cgit 1.4.1-3-g733a5