commit | 545a3a94fcbdd68c4eeb60848c8eae2118c639c7 | [log] [tgz] |
---|---|---|
author | bors <bors@rust-lang.org> | Thu Aug 04 11:51:27 2016 -0700 |
committer | GitHub <noreply@github.com> | Thu Aug 04 11:51:27 2016 -0700 |
tree | 405df1f63b219cdb7015409e4ce26bab3e764404 | |
parent | e804a3cf256106c097d44f6e0212cd183122da07 [diff] | |
parent | fbabe616413d34c1ab68668de34de4322d963b93 [diff] |
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.