about summary refs log tree commit diff
path: root/src/libsyntax/errors/json.rs
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2016-04-20 20:00:25 -0400
committerNiko Matsakis <niko@alum.mit.edu>2016-05-02 11:49:24 -0400
commit1067850e6a8664eaabd59c3893aa5a762bdf2339 (patch)
tree5fc2c3e18e724dcad3ecd8e0817c56f9640cc6bc /src/libsyntax/errors/json.rs
parent9d022f299359c341d2f57ab5425855556fc83937 (diff)
downloadrust-1067850e6a8664eaabd59c3893aa5a762bdf2339.tar.gz
rust-1067850e6a8664eaabd59c3893aa5a762bdf2339.zip
refactor the Emitter trait
There is now a CoreEmitter that everything desugars to, but without
losing any information. Also remove RenderSpan::FileLine. This lets the
rustc_driver tests build.
Diffstat (limited to 'src/libsyntax/errors/json.rs')
-rw-r--r--src/libsyntax/errors/json.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libsyntax/errors/json.rs b/src/libsyntax/errors/json.rs
index b343c3f3fbb..93c6268ccae 100644
--- a/src/libsyntax/errors/json.rs
+++ b/src/libsyntax/errors/json.rs
@@ -294,7 +294,6 @@ impl DiagnosticSpan {
 
     fn from_render_span(rsp: &RenderSpan, je: &JsonEmitter) -> Vec<DiagnosticSpan> {
         match *rsp {
-            RenderSpan::FileLine(ref msp) |
             RenderSpan::FullSpan(ref msp) =>
                 DiagnosticSpan::from_multispan(msp, je),
             RenderSpan::Suggestion(ref suggestion) =>
@@ -356,7 +355,6 @@ impl DiagnosticCode {
 impl JsonEmitter {
     fn render(&self, render_span: &RenderSpan) -> Option<String> {
         match *render_span {
-            RenderSpan::FileLine(_) |
             RenderSpan::FullSpan(_) => {
                 None
             }