summary refs log tree commit diff
path: root/src/librustc_const_eval/diagnostics.rs
AgeCommit message (Collapse)AuthorLines
2017-09-11rustc: remove obsolete const_val::ErrKind::{Negate,Not}On.Eduard-Mihai Burtescu-1/+1
2017-06-23Removed as many "```ignore" as possible.kennytm-3/+5
Replaced by adding extra imports, adding hidden code (`# ...`), modifying examples to be runnable (sorry Homura), specifying non-Rust code, and converting to should_panic, no_run, or compile_fail. Remaining "```ignore"s received an explanation why they are being ignored.
2017-06-01Change for-loop desugar to not borrow the iterator during the loopJohn Kåre Alsaker-1/+3
2017-04-16rustc_const_eval: move ConstEvalErr to the rustc crate.Eduard-Mihai Burtescu-19/+0
2017-03-13clean up visuals on error index #40425Joshua Horwitz-3/+3
2017-02-25rustc_const_eval: always demand typeck_tables for evaluating constants.Eduard-Mihai Burtescu-16/+0
2017-01-06fix doc test for E0001Andrew Cann-1/+1
2017-01-05Un-remove E0001, put a notice on it insteadAndrew Cann-0/+27
2017-01-03Remove E0001 diagnosticAndrew Cann-25/+0
2017-01-03Make is_useful handle empty types properlyAndrew Cann-1/+1
2016-12-28rustc: separate bodies for static/(associated)const and embedded constants.Eduard-Mihai Burtescu-4/+4
2016-11-14Uncomment some long error explanationGuillaume Gomez-4/+6
2016-10-31Changed most vec! invocations to use square bracesiirelu-3/+3
Most of the Rust community agrees that the vec! macro is clearer when called using square brackets [] instead of regular brackets (). Most of these ocurrences are from before macros allowed using different types of brackets. There is one left unchanged in a pretty-print test, as the pretty printer still wants it to have regular brackets.
2016-10-27Make sufficiently old or low-impact compatibility lints deny-by-defaultVadim Petrochenkov-2/+0
2016-10-26remove StaticInliner and NaN checkingAriel Ben-Yehuda-2/+2
NaN checking was a lint for a deprecated feature. It can go away.
2016-10-26split the exhaustiveness-checking logic to its own moduleAriel Ben-Yehuda-2/+2
`check_match` is now left with its grab bag of random checks.
2016-08-05Add error code check in librustc_const_eval/diagnostics.rsGuillaume Gomez-22/+26
2016-07-22refactor constant evaluation error reportingAriel Ben-Yehuda-20/+22
Refactor constant evaluation to use a single error reporting function that reports a type-error-like message. Also, unify all error codes with the "constant evaluation error" message to just E0080, and similarly for a few other duplicate codes. The old situation was a total mess, and now that we have *something* we can further iterate on the UX.
2016-06-01Fix E0165 code examplesGuillaume Gomez-3/+4
2016-05-27* Fix compile_fail tag (in some cases, it compiled whereas it wasn't ↵Guillaume Gomez-1/+3
expected to and was still considered 'ok') * Fix error explanations tests/tags
2016-05-12Add more details and examples in error codeggomez-4/+9
2016-05-03add help on pattern guardmrmiywj-10/+51
fix too long column fix typo of help on pattern guard one nit fix compile fail
2016-03-30move `const_eval` and `check_match` out of `librustc`Oliver Schneider-0/+545