summary refs log tree commit diff
path: root/src/test/compile-fail/const-err.rs
AgeCommit message (Collapse)AuthorLines
2016-08-04Update wording on E0080Shantanu Raj-5/+5
Change "attempted" to "attempt"
2016-07-22refactor constant evaluation error reportingAriel Ben-Yehuda-8/+16
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-05trans: report as many errors as possible for constants.Eduard Burtescu-0/+2
2016-06-05rustc_const_eval: track the length and index in IndexOutOfBounds.Eduard Burtescu-3/+3
2016-06-05Enable the overflow-related tests for MIRJames Miller-2/+0
2016-05-07Translate constants from MIR instead of going through trans::expr/consts.Eduard Burtescu-1/+8
2016-04-26don't demote expressions just because const_eval failsOliver Schneider-0/+5
this might introduce subtle bugs to code generation
2016-04-26const_err lint all constant expressionsOliver Schneider-1/+0
2016-04-03check constants even if they are unused in the current crateOliver Schneider-5/+2
2016-03-17Add #[rustc_no_mir] to make tests pass with -Z orbit.Eduard Burtescu-2/+4
2016-03-10typestrong constant integersOliver Schneider-2/+2
2015-10-13implement RFC 1229Oliver Schneider-0/+36
const eval errors outside of true constant enviroments are not reported anymore, but instead forwarded to a lint.