Add unchecked math inherant impls to integers#63923
Add unchecked math inherant impls to integers#63923CAD97 wants to merge 3 commits intorust-lang:masterfrom
Conversation
|
(rust_highfive has picked a reviewer for you, use r? to override) |
|
Honestly, I'd be fine having these be They'd be less easy to reach for if they weren't available as methods and had to be used as e.g. |
As long as we're using |
|
What's the purpose and use case for these functions, as opposed to functions guaranteed to have wrapping semantics? |
|
@joshtriplett better optimization -- see the original PR to add the intrinsics. |
|
Ping from triage Thanks. |
|
I'm going to close this and include it in the use case for now as an |
This exposes the
unchecked_addandunchecked_subintrinsics on integers.If we agree we want this, I'll make a tracking issue and point the
#[unstable]attributes at it.This would be used by #62886 at a minimum.