summary refs log tree commit diff
path: root/src/test/compile-fail/eval-enum.rs
AgeCommit message (Collapse)AuthorLines
2018-03-08Unify the const folding errorsOliver Schneider-2/+0
before they differed depending on whether optimizations were on or not
2018-03-08Adjust tests to more aggressive const err lintingOliver Schneider-0/+2
2018-03-08Fully use miri in transOliver Schneider-6/+9
2016-08-04Update wording on E0080Shantanu Raj-2/+2
Change "attempted" to "attempt"
2016-07-22refactor constant evaluation error reportingAriel Ben-Yehuda-2/+4
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-03-10typestrong constant integersOliver Schneider-1/+2
2015-03-03Address arith-overflow and error-handling in `const_eval.rs`.Felix S. Klock II-2/+2
1. Detect and report arithmetic overflow during const-expr eval. 2. Instead `eval_const_expr_partial` returning `Err(String)`, it now has a dedicated enum of different cases. The main benefit of this is the ability to pass along an interpretable payload, namely the two inputs that caused an overlfow. I attempted to minimize fallout to error output in tests, but some was unavoidable. Those changes are in a follow-on commit.
2014-02-07Added tests to make tidyDerek Guenther-0/+10
2013-05-01Revert rename of Div to QuotBrendan Zabarauskas-1/+1
2013-04-24Improve divide-by-zero error messagesBrendan Zabarauskas-2/+2
2013-04-22Rename Div operator trait to Quot and Modulo operator trait to RemBrendan Zabarauskas-2/+2
2013-01-23Handle divide by zero in constant evaluatorSeo Sanghyeon-0/+6