about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-08-04 11:51:27 -0700
committerGitHub <noreply@github.com>2016-08-04 11:51:27 -0700
commit545a3a94fcbdd68c4eeb60848c8eae2118c639c7 (patch)
tree405df1f63b219cdb7015409e4ce26bab3e764404 /src/libstd/sys/unix/stack_overflow.rs
parente804a3cf256106c097d44f6e0212cd183122da07 (diff)
parentfbabe616413d34c1ab68668de34de4322d963b93 (diff)
downloadrust-545a3a94fcbdd68c4eeb60848c8eae2118c639c7.tar.gz
rust-545a3a94fcbdd68c4eeb60848c8eae2118c639c7.zip
Auto merge of #35300 - eddyb:mir-neg-overflow, r=arielb1
rustc_trans: don't Assert(Overflow(Neg)) when overflow checks are off.

Generic functions using `Neg` on primitive types would panic even in release mode, with MIR trans.
The solution is a bit hacky, as I'm checking the message, since there's no dedicated `CheckedUnOp`.

Blocks Servo rustup ([failure #1](http://build.servo.org/builders/linux-rel/builds/2477/steps/test_3/logs/stdio), [failure #2](http://build.servo.org/builders/mac-rel-css/builds/2364/steps/test/logs/stdio)) - this should be the last hurdle, it affects only one test.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions