]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #24500 - pnkfelix:oflo-checked-neg, r=nikomatsakis
authorbors <bors@rust-lang.org>
Fri, 17 Apr 2015 22:45:10 +0000 (22:45 +0000)
committerbors <bors@rust-lang.org>
Fri, 17 Apr 2015 22:45:10 +0000 (22:45 +0000)
Add conditional overflow-checking to signed negate operator.

I argue this can land independently of #24420 , because one can write the implementation of `wrapped_neg()` inline if necessary (as illustrated in two cases on this PR).

This needs to go into beta channel.


Trivial merge