rust/src
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
..
bootstrap Rollup merge of #40019 - alexcrichton:fix-musl, r=brson 2017-02-25 14:13:30 +02:00
build_helper
ci Rollup merge of #40019 - alexcrichton:fix-musl, r=brson 2017-02-25 14:13:30 +02:00
compiler-rt@d30da544a8
doc Rollup merge of #40071 - tomwhoiscontrary:pr-lets-apostrophes, r=GuillaumeGomez 2017-02-24 13:23:01 +01:00
driver
etc
grammar
jemalloc@11bfb0dcf8
liballoc Revert "Fix up links" 2017-02-20 09:09:12 -05:00
liballoc_jemalloc test: Verify all sysroot crates are unstable 2017-02-21 11:38:17 -08:00
liballoc_system
libarena
libbacktrace
libcollections Rollup merge of #40048 - jimblandy:fmt-arg-types-doc, r=alexcrichton 2017-02-24 13:22:58 +01:00
libcollectionstest
libcompiler_builtins
libcore Rollup merge of #39886 - mbrubeck:doc-edit, r=steveklabnik 2017-02-24 13:22:54 +01:00
libcoretest
libflate
libfmt_macros
libgetopts
libgraphviz
liblibc@64d954c6a7 Update name_bytes, scoop up latest libc 2017-02-22 09:28:02 -08:00
liblog
libpanic_abort
libpanic_unwind
libproc_macro
libproc_macro_plugin
librand
librustc Rollup merge of #40037 - froydnj:overflow-checks, r=alexcrichton 2017-02-25 14:13:38 +02:00
librustc_asan
librustc_back
librustc_bitflags
librustc_borrowck
librustc_const_eval use a more conservative inhabitableness rule 2017-02-23 22:46:22 +02:00
librustc_const_math
librustc_data_structures
librustc_driver
librustc_errors
librustc_incremental Rollup merge of #40037 - froydnj:overflow-checks, r=alexcrichton 2017-02-25 14:13:38 +02:00
librustc_lint
librustc_llvm
librustc_lsan
librustc_metadata Rollup merge of #40022 - wagenet:lib-defaults, r=alexcrichton 2017-02-25 14:13:31 +02:00
librustc_mir Rollup merge of #40037 - froydnj:overflow-checks, r=alexcrichton 2017-02-25 14:13:38 +02:00
librustc_msan
librustc_passes Rollup merge of #40027 - cramertj:stabilize_static_recursion, r=nrc 2017-02-25 14:13:35 +02:00
librustc_platform_intrinsics
librustc_plugin
librustc_privacy
librustc_resolve Rollup merge of #39953 - keeperofdakeys:macro-error, r=jseyfried 2017-02-25 14:13:23 +02:00
librustc_save_analysis Move MacroKind into Def::Macro 2017-02-23 20:12:33 +10:30
librustc_trans Rollup merge of #40037 - froydnj:overflow-checks, r=alexcrichton 2017-02-25 14:13:38 +02:00
librustc_tsan
librustc_typeck Rollup merge of #40025 - est31:master, r=eddyb 2017-02-25 14:13:33 +02:00
librustdoc Rollup merge of #39953 - keeperofdakeys:macro-error, r=jseyfried 2017-02-25 14:13:23 +02:00
libserialize
libstd Rollup merge of #40024 - raphlinus:readdir, r=alexcrichton 2017-02-25 14:13:32 +02:00
libstd_unicode
libsyntax Rollup merge of #40027 - cramertj:stabilize_static_recursion, r=nrc 2017-02-25 14:13:35 +02:00
libsyntax_ext
libsyntax_pos
libterm
libtest
libunwind
llvm@ceb177eeef
rt
rtstartup
rust-installer@4f99485080
rustc test: Verify all sysroot crates are unstable 2017-02-21 11:38:17 -08:00
rustllvm
test Rollup merge of #40037 - froydnj:overflow-checks, r=alexcrichton 2017-02-25 14:13:38 +02:00
tools Rollup merge of #40031 - cynicaldevil:master, r=est31 2017-02-25 14:13:36 +02:00
Cargo.lock Auto merge of #39851 - alexcrichton:verify-unstable, r=brson 2017-02-24 02:40:16 +00:00
Cargo.toml test: Verify all sysroot crates are unstable 2017-02-21 11:38:17 -08:00
stage0.txt