about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2017-02-25 14:13:38 +0200
committerGitHub <noreply@github.com>2017-02-25 14:13:38 +0200
commit582d5d9793fc017d47b6cea7ab0bfd4755ee05cc (patch)
treeb856472d279761c3e5ba6aea2e87a9840f00aa9d /src/test/incremental/thinlto
parent4f9d6d6c9f71c848478a372b664df88226ce5796 (diff)
parentffc6ddd51b960469ffee8d2fb80d5a664e2a6c21 (diff)
downloadrust-582d5d9793fc017d47b6cea7ab0bfd4755ee05cc.tar.gz
rust-582d5d9793fc017d47b6cea7ab0bfd4755ee05cc.zip
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](https://github.com/rust-lang/rust/blob/b1363a73ede57ae595f3a1be2bb75d308ba4f7f6/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
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions