- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.9k
Closed
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-const_trait_impl`#![feature(const_trait_impl)]``#![feature(const_trait_impl)]`T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
Feature gate: #![feature(const_ops)]
This is a tracking issue for const_ops, which adds const versions of common numeric operations in std::ops.
Public API
- NonZero- BitOr
- BitOrAssign
- Div
- Rem
 
- Wrapping- Shl
- Shr
- ShlAssign
- ShrAssign
- Add
- AddAssign
- Sub
- SubAssign
- Mul
- MulAssign
- Div
- DivAssign
- Rem
- RemAssign
- Not
- BitXor
- BitXorAssign
- BitOr
- BitOrAssign
- BitAnd
- BitAndAssign
- Neg
 
- u*/- i*- Add
- Sub
- Mul
- Div
- Rem
- Neg
- AddAssign
- SubAssign
- MulAssign
- DivAssign
- RemAssign
- Not
- BitAnd
- BitOr
- BitXor
- Shl
- Shr
- BitAndAssign
- BitOrAssign
- BitXorAssign
- ShlAssign
- ShrAssign
 
Steps / History
- Implementation: Make most std::ops traits const on numeric types #89876.
- Tests
- Final comment period (FCP)
- Stabilization PR
Unresolved Questions
- None yet.
schneiderfelipe, joshsleeper and DominicBurkart
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-const_trait_impl`#![feature(const_trait_impl)]``#![feature(const_trait_impl)]`T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.