about summary refs log tree commit diff
path: root/src/libsyntax/errors
AgeCommit message (Collapse)AuthorLines
2016-01-15Rollup merge of #30787 - nikomatsakis:future-incompatible-lint, r=brsonManish Goregaokar-0/+18
There is now more structure to the report, so that you can specify e.g. an RFC/PR/issue number and other explanatory details. Example message: ``` type-parameter-invalid-lint.rs:14:8: 14:9 error: defaults for type parameters are only allowed on type definitions, like `struct` or `enum` type-parameter-invalid-lint.rs:14 fn avg<T=i32>(_: T) {} ^ type-parameter-invalid-lint.rs:14:8: 14:9 warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! type-parameter-invalid-lint.rs:14:8: 14:9 note: for more information, see PR 30742 <https://github.com/rust-lang/rust/pull/30724> type-parameter-invalid-lint.rs:11:9: 11:28 note: lint level defined here type-parameter-invalid-lint.rs:11 #![deny(future_incompatible)] ^~~~~~~~~~~~~~~~~~~ error: aborting due to previous error ``` r? @brson I would really like feedback also on the specific messages! Fixes #30746
2016-01-15Add a testNick Cameron-1/+1
And fix bustage in make check
2016-01-15Implement JSON error emissionNick Cameron-27/+210
[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 an --output option for specifying an error emitterNick Cameron-1/+2
2016-01-15Add a JSON error emitterNick Cameron-0/+54
2016-01-12use fileline_ and not full span_ for the followon messagesNiko Matsakis-0/+7
2016-01-12Revamp the "future incompatible" section to clarify the situationNiko Matsakis-0/+11
better
2015-12-30Rebasing and review commentsNick Cameron-23/+17
2015-12-30RefactoringNick Cameron-35/+70
2015-12-30use structured errorsNick Cameron-1/+1
2015-12-30Structured diagnosticsNick Cameron-30/+253
2015-12-17test errorsNick Cameron-59/+60
2015-12-17A little more refactoring inside emitter.rsNick Cameron-45/+35
2015-12-17Add the files I fogot about earlierNick Cameron-0/+1027
d'oh