rust/src/librustc_mir
Eduard-Mihai Burtescu 582d5d9793 Rollup merge of #40037 - froydnj:overflow-checks, r=alexcrichton
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](b1363a73ed/src/test/run-pass/issue-28950.rs) failure on my machine with these patches, but I was also seeing the failure without the changes to the core compiler.  We'll see what travis says.

Fixes #33134.  r? @alexcrichton
2017-02-25 14:13:38 +02:00
..
build Rollup merge of #40025 - est31:master, r=eddyb 2017-02-25 14:13:33 +02:00
hair Rollup merge of #40037 - froydnj:overflow-checks, r=alexcrichton 2017-02-25 14:13:38 +02:00
transform Implement non-capturing closure to fn coercion 2017-02-23 22:32:22 +01:00
Cargo.toml Bump version, upgrade bootstrap 2017-02-03 13:25:46 -08:00
def_use.rs rustc: move mir::repr::* to mir. 2016-10-28 10:37:24 +03:00
diagnostics.rs
graphviz.rs rustc: rename TyCtxt's map field to hir. 2017-01-26 13:41:28 +02:00
lib.rs SwitchInt over Switch 2017-02-10 19:42:41 +02:00
mir_map.rs remove some of the ways to mutate a DepTrackingMap 2017-02-02 20:38:35 -05:00
pretty.rs Rollup merge of #39311 - solson:fix-unpretty-mir-non-local, r=eddyb 2017-01-27 16:42:06 -08:00