Skip to content

Use a macro to reduce duplication in core/src/num/f{16,32,64,128}.rs (part 2) - #165773

Open
beetrees wants to merge 2 commits into
rust-lang:mainfrom
beetrees:float-macro-2
Open

beetrees wants to merge 2 commits into
rust-lang:mainfrom
beetrees:float-macro-2

Conversation

@beetrees

@beetrees beetrees commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

This is the sequel to #163410, moving the float classification methods to the macro. To make this easier to review, in the first commit I've included a copy-paste of the new parts of the macro in the same place as where the methods have been moved from, so the diff will show the changes. I've then removed these duplicates in the second commit, leaving the final state with no duplication.

r? @ChrisDenton

@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 Nov 10, 2026
@beetrees beetrees changed the title Use a macro to reduce duplication in core/src/num/f{16,32,64,128}.rs (part 2) Use a macro to reduce duplication in core/src/num/f{16,32,64,128}.rs (part 2) Nov 10, 2026
@rust-log-analyzer

This comment has been minimized.

@beetrees
beetrees marked this pull request as draft November 10, 2026 18:26
@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 10, 2026
@beetrees
beetrees marked this pull request as ready for review November 10, 2026 18:36
@rustbot

rustbot commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator

Some changes occurred to the intrinsics. Make sure the CTFE / Miri interpreter
gets adapted for the changes, if necessary.

cc @rust-lang/miri, @RalfJung, @oli-obk, @lcnr

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Nov 10, 2026
Comment thread library/core/src/intrinsics/mod.rs Resolved
Comment thread library/core/src/num/f128.rs Resolved
@rust-bors

This comment has been minimized.

@rustbot

rustbot commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

5 participants