582d5d9793
add `-C overflow-checks` option
In addition to defining and handling the new option, we also add a method on librustc::Session for determining the necessity of overflow checks. This method provides a single point to sort out the three (!) different ways for turning on overflow checks: -C debug-assertions, -C overflow-checks, and -Z force-overflow-checks.
I was seeing a [run-pass/issue-28950.rs](
|
||
---|---|---|
.. | ||
build | ||
hair | ||
transform | ||
Cargo.toml | ||
def_use.rs | ||
diagnostics.rs | ||
graphviz.rs | ||
lib.rs | ||
mir_map.rs | ||
pretty.rs |