Uh oh!
There was an error while loading. Please reload this page.
std: Move overflowing ops to inherent methods - #30466
Conversation
rust-highfive
commented
Dec 18, 2015
(rust_highfive has picked a reviewer for you, use r? to override) |
alexcrichton
commented
Dec 18, 2015
r? @aturon Note that this doesn't deprecate the old wrappers, it just prepares everything for the upcoming "deprecation commit" |
aturon
commented
Dec 21, 2015
Hm, this might be slightly premature given discussion here. Let's wait for some overall consensus before landing this change. |
bors
commented
Dec 22, 2015
☔ The latest upstream changes (presumably #30434) made this pull request unmergeable. Please resolve the merge conflicts. |
There was a problem hiding this comment.
This comment isn't quite clear about what value is returned on overflow.
aturon
commented
Dec 31, 2015
@alexcrichton There seems to be consensus around the issue, so I've reviewed the PR and left a few nits. Once these are resolved r=me. |
ollie27
commented
Jan 5, 2016
I wouldn't expect Also it looks like |
This commit migrates all of the methods on `num::wrapping::OverflowingOps` onto
inherent methods of the integer types. This also fills out some missing gaps in
the saturating and checked departments such as:
* `saturating_mul`
* `checked_{neg,rem,shl,shr}`
This is done in preparation for stabilization,
cc rust-lang#27755a5e04c6 to
7eb7699Comparealexcrichton
commented
Jan 12, 2016
aturon
commented
Jan 13, 2016
@bors: r+ |
bors
commented
Jan 13, 2016
📌 Commit 7eb7699 has been approved by |
bors
commented
Jan 14, 2016
This commit migrates all of the methods on `num::wrapping::OverflowingOps` onto
inherent methods of the integer types. This also fills out some missing gaps in
the saturating and checked departments such as:
* `saturating_mul`
* `checked_{neg,rem,shl,shr}`
This is done in preparation for stabilization,
cc #27755
This commit migrates all of the methods on
num::wrapping::OverflowingOpsontoinherent methods of the integer types. This also fills out some missing gaps in
the saturating and checked departments such as:
saturating_mulchecked_{neg,rem,shl,shr}This is done in preparation for stabilization,
cc #27755