summary refs log tree commit diff
path: root/src/test/compile-fail/eval-enum.rs
AgeCommit message (Collapse)AuthorLines
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