Skip to content

Tracking Issue for mixed_integer_ops_unsigned_sub #126043

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 of 4 tasks
davidzeng0 opened this issue Jun 5, 2024 · 6 comments
Open
2 of 4 tasks

Tracking Issue for mixed_integer_ops_unsigned_sub #126043

davidzeng0 opened this issue Jun 5, 2024 · 6 comments
Labels
C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. final-comment-period In the final comment period and will be merged soon unless new substantive objections are raised. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Comments

@davidzeng0
Copy link
Contributor

davidzeng0 commented Jun 5, 2024

Feature gate: #![feature(mixed_integer_ops_unsigned_sub)]

This is a tracking issue for rust-lang/libs-team#386

Public API

impl uX {
    pub const fn checked_sub_signed(self, iX) -> Option<Self>;
    pub const fn overflowing_sub_signed(self, iX) -> (Self, bool);
    pub const fn saturating_sub_signed(self, iX) -> Self;
    pub const fn wrapping_sub_signed(self, iX) -> Self;
}

Steps / History

Unresolved Questions

  • None yet.

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html

@davidzeng0 davidzeng0 added C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. labels Jun 5, 2024
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Nov 13, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
…ned_sub, r=Amanieu

Implement `mixed_integer_ops_unsigned_sub`

Implement rust-lang#126043

ACP: rust-lang/libs-team#386 [Accepted]
rust-timer added a commit to rust-lang-ci/rust that referenced this issue Nov 14, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Rollup merge of rust-lang#126046 - davidzeng0:mixed_integer_ops_unsigned_sub, r=Amanieu

Implement `mixed_integer_ops_unsigned_sub`

Implement rust-lang#126043

ACP: rust-lang/libs-team#386 [Accepted]
@nxsaken
Copy link

nxsaken commented May 29, 2025

Discovered this through the unstable checked_sub_signed. Looks like the impl (#126046) was merged last year. What's needed to stabilize this?

@rustbot
Copy link
Collaborator

rustbot commented Jun 3, 2025

Error: Only Rust team members can ping teams.

Please file an issue on GitHub at triagebot if there's a problem with this bot, or reach out on #t-infra on Zulip.

@callmeclover
Copy link

callmeclover commented Jun 5, 2025

@Amanieu @rust-lang/libs Can we start FCP on this? The ACP (rust-lang/libs-team#386) and implementation (#126046) passed last year.

@Amanieu
Copy link
Member

Amanieu commented Jun 9, 2025

I'm not a huge fan of overflowing_* methods but I think it's fine in this case since it is consistent with the existing ones. The other methods seem fine to me.

@rfcbot merge

@rfcbot
Copy link
Collaborator

rfcbot commented Jun 9, 2025

Team member @Amanieu has proposed to merge this. The next step is review by the rest of the tagged team members:

No concerns currently listed.

Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up!

See this document for info about what commands tagged team members can give me.

Sorry, something went wrong.

@rfcbot rfcbot added proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off. disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. final-comment-period In the final comment period and will be merged soon unless new substantive objections are raised. and removed proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off. labels Jun 9, 2025
@rfcbot
Copy link
Collaborator

rfcbot commented Jun 10, 2025

🔔 This is now entering its final comment period, as per the review above. 🔔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. final-comment-period In the final comment period and will be merged soon unless new substantive objections are raised. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

6 participants