diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2016-04-20 20:00:25 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2016-05-02 11:49:24 -0400 |
| commit | 1067850e6a8664eaabd59c3893aa5a762bdf2339 (patch) | |
| tree | 5fc2c3e18e724dcad3ecd8e0817c56f9640cc6bc /src/libsyntax/errors/mod.rs | |
| parent | 9d022f299359c341d2f57ab5425855556fc83937 (diff) | |
| download | rust-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/mod.rs')
| -rw-r--r-- | src/libsyntax/errors/mod.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libsyntax/errors/mod.rs b/src/libsyntax/errors/mod.rs index 0de2e067802..d533ffb981a 100644 --- a/src/libsyntax/errors/mod.rs +++ b/src/libsyntax/errors/mod.rs @@ -38,10 +38,6 @@ pub enum RenderSpan { /// of hypothetical source code, where each `String` is spliced /// into the lines in place of the code covered by each span. Suggestion(CodeSuggestion), - - /// A FileLine renders with just a line for the message prefixed - /// by file:linenum. - FileLine(MultiSpan), } #[derive(Clone)] @@ -54,8 +50,7 @@ impl RenderSpan { fn span(&self) -> &MultiSpan { match *self { FullSpan(ref msp) | - Suggestion(CodeSuggestion { ref msp, .. }) | - FileLine(ref msp) => + Suggestion(CodeSuggestion { ref msp, .. }) => msp } } |
