Skip to content

Stabilize fN::BITS#154065

Open
Apersoma wants to merge 2 commits intorust-lang:mainfrom
Apersoma:stabilize-fN-bits
Open

Stabilize fN::BITS#154065
Apersoma wants to merge 2 commits intorust-lang:mainfrom
Apersoma:stabilize-fN-bits

Conversation

@Apersoma
Copy link
Copy Markdown

@Apersoma Apersoma commented Mar 19, 2026

View all comments

Tracking issue: #151073
Closes: #151073

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Mar 19, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Mar 19, 2026

r? @scottmcm

rustbot has assigned @scottmcm.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @scottmcm, libs
  • @scottmcm, libs expanded to 8 candidates
  • Random selection from Mark-Simulacrum, scottmcm

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Mar 19, 2026

compiler-builtins is developed in its own repository. If possible, consider making this change to rust-lang/compiler-builtins instead.

cc @tgross35

@rustbot rustbot added the A-compiler-builtins Area: compiler-builtins (https://github.com/rust-lang/compiler-builtins) label Mar 19, 2026
@tgross35 tgross35 assigned tgross35 and unassigned scottmcm Mar 19, 2026
@tgross35
Copy link
Copy Markdown
Contributor

This has only been around since January but it seems pretty unobjectionable to have. However, this does conflict with a constant in use in the ecosystem (showed up in the implementation PR) so we need to take a look at crater.

@bors try

@rustbot label +I-libs-api-nominated

@rustbot rustbot added the I-libs-api-nominated Nominated for discussion during a libs-api team meeting. label Mar 19, 2026
@rust-bors

This comment has been minimized.

rust-bors bot pushed a commit that referenced this pull request Mar 19, 2026
@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors bot commented Mar 19, 2026

☀️ Try build successful (CI)
Build commit: 0abe69e (0abe69e6c16114311cc2700e972492e64d69c28f, parent: 1f7f8ea0721a3b1eb73e6c6d25cccb371434b320)

@tgross35
Copy link
Copy Markdown
Contributor

Doing a run with tests in case somebody has a different value for BITS for some reason.

@craterbot run mode=build-and-test

@craterbot
Copy link
Copy Markdown
Collaborator

👌 Experiment pr-154065 created and queued.
🤖 Automatically detected try build 0abe69e
🔍 You can check out the queue and this experiment's details.

ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more

@craterbot craterbot added S-waiting-on-crater Status: Waiting on a crater run to be completed. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 19, 2026
@Amanieu Amanieu removed the I-libs-api-nominated Nominated for discussion during a libs-api team meeting. label Mar 24, 2026
@Amanieu
Copy link
Copy Markdown
Member

Amanieu commented Mar 24, 2026

FCP started in #151073

@tgross35
Copy link
Copy Markdown
Contributor

@Apersoma please squash the commits and give it a reasonable message, the first commit just says "cmplt" (we don't have squash merging on this repo).

@craterbot
Copy link
Copy Markdown
Collaborator

🚧 Experiment pr-154065 is now running

ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more

@craterbot
Copy link
Copy Markdown
Collaborator

🎉 Experiment pr-154065 is completed!
📊 297 regressed and 292 fixed (857798 total)
📊 132042 spurious results on the retry-regressed-list.txt, consider a retry1 if this is a significant amount.
📰 Open the summary report.

⚠️ If you notice any spurious failure please add them to the denylist!
ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more

Footnotes

  1. re-run the experiment with crates=https://crater-reports.s3.amazonaws.com/pr-154065/retry-regressed-list.txt

@craterbot craterbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-crater Status: Waiting on a crater run to be completed. labels Mar 28, 2026
@tgross35
Copy link
Copy Markdown
Contributor

@craterbot
Copy link
Copy Markdown
Collaborator

👌 Experiment pr-154065-1 created and queued.
🤖 Automatically detected try build 0abe69e
🔍 You can check out the queue and this experiment's details.

ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more

@craterbot craterbot added S-waiting-on-crater Status: Waiting on a crater run to be completed. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 28, 2026
@tgross35
Copy link
Copy Markdown
Contributor

Crater isn't too bad, but there are a couple of crates that I think we could resolve reasonably easy:

Crates that depend on common_traits might run into some an issue too, we'll have to rerun the regressed list once a new version is published.

Let's give some time for fixes here.

@rustbot blocked
@SnoozeThis wait 2 months

@rustbot rustbot added the S-blocked Status: Blocked on something else such as an RFC or other implementation work. label Mar 28, 2026
@tgross35 tgross35 mentioned this pull request Mar 28, 2026
4 tasks
@SnoozeThis
Copy link
Copy Markdown

(https://snoozeth.is/wG5NpmKaHZw) I will wait until Thu, 28 May 2026 19:27:23 UTC and then add a comment.

@rustbot claim.

@rustbot rustbot assigned SnoozeThis and unassigned tgross35 Mar 28, 2026
@Apersoma
Copy link
Copy Markdown
Author

Crater isn't too bad, but there are a couple of crates that I think we could resolve reasonably easy:

Crates that depend on common_traits might run into some an issue too, we'll have to rerun the regressed list once a new version is published.

Let's give some time for fixes here.

@rustbot blocked @SnoozeThis wait 2 months

How do you filter for what's actually useful in crater?

@tgross35
Copy link
Copy Markdown
Contributor

Look for "regressed: dependencies" (some crate in the dep tree failed) and "regressed: root results" (the crate itself failed) in the summary. We retry the spurious results.

You can also go to the downloads tab to grab the results and do something like rg '::BITS' which can be a bit more clear.

@Apersoma
Copy link
Copy Markdown
Author

This probably going to need a second crater run for errors causes by users of common_traits after the new version gets published, right?

@tgross35
Copy link
Copy Markdown
Contributor

This probably going to need a second crater run for errors causes by users of common_traits after the new version gets published, right?

I think so ^^ 🙂

Crates that depend on common_traits might run into some an issue too, we'll have to rerun the regressed list once a new version is published.

@zommiommy
Copy link
Copy Markdown
Contributor

done, sorry!

@tgross35
Copy link
Copy Markdown
Contributor

Not a problem, there’s no way of knowing until this happens :) thank you for the quick action!

@craterbot
Copy link
Copy Markdown
Collaborator

🚧 Experiment pr-154065-1 is now running

ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more

@craterbot
Copy link
Copy Markdown
Collaborator

🎉 Experiment pr-154065-1 is completed!
📊 114 regressed and 120 fixed (132208 total)
📊 1656 spurious results on the retry-regressed-list.txt, consider a retry1 if this is a significant amount.
📰 Open the summary report.

⚠️ If you notice any spurious failure please add them to the denylist!
ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more

Footnotes

  1. re-run the experiment with crates=https://crater-reports.s3.amazonaws.com/pr-154065-1/retry-regressed-list.txt

@craterbot craterbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-crater Status: Waiting on a crater run to be completed. S-blocked Status: Blocked on something else such as an RFC or other implementation work. labels Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-compiler-builtins Area: compiler-builtins (https://github.com/rust-lang/compiler-builtins) S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tracking Issue for fN::BITS

8 participants