rust/src/librustc_typeck
Felix S. Klock II 4e04d57efa Added type-specific overflow checks when computing enum discriminant values.
Moved such overflow checking into one place (in `rustc::middle::ty`,
since it needs to be run on-demand during `const_eval` in some
scenarios), and revised `rustc_typeck` accordingly.

(Note that we only check for overflow if program did not provide a
discriminant value explicitly.)

Fix #23030

Fix #23221

Fix #23235
2015-04-01 02:55:13 +02:00
..
2015-03-26 12:10:22 -07:00
2015-03-26 12:10:22 -07:00
2015-03-26 12:10:22 -07:00