about summary refs log tree commit diff
path: root/src/libsyntax/errors/json.rs
AgeCommit message (Collapse)AuthorLines
2016-05-02refactor the Emitter traitNiko Matsakis-2/+0
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.
2016-05-02adapt JSON to new modelNiko Matsakis-119/+83
Each Span now carries a `is_primary` boolean along with an optional label. If there are multiple labels for a span, it will appear multiple times.
2016-04-21pacify the merciless acrichto (somewhat)Niko Matsakis-8/+6
Also add a comment or two to pacify the merciless self-critic, who hates a closure without a comment.
2016-04-21port compiletest to use JSON outputNiko Matsakis-84/+167
This uncovered a lot of bugs in compiletest and also some shortcomings of our existing JSON output. We had to add information to the JSON output, such as suggested text and macro backtraces. We also had to fix various bugs in the existing tests. Joint work with jntrnr.
2016-04-04Give better spans for SpanEnd errorsNick Cameron-15/+60
2016-03-24Include source text in JSON errorsNick Cameron-1/+39
2016-01-28Implement MultiSpan error reportingmitaa-52/+60
This allows to render multiple spans on one line, or to splice multiple replacements into a code suggestion.
2016-01-15Add a testNick Cameron-1/+1
And fix bustage in make check
2016-01-15Implement JSON error emissionNick Cameron-12/+192
[breaking-change] syntax::errors::Handler::new has been renamed to with_tty_emitter Many functions which used to take a syntax::errors::ColorConfig, now take a rustc::session::config::ErrorOutputType. If you previously used ColorConfig::Auto as a default, you should now use ErrorOutputType::default().
2016-01-15Add a JSON error emitterNick Cameron-0/+53