Skip to content

Use a distinct ToString implementation for u128 and i128 #142294

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
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

GuillaumeGomez
Copy link
Member

@GuillaumeGomez GuillaumeGomez commented Jun 10, 2025

Part of #135543.

Follow-up of #136264.

When working on #142098, I realized that i128 and u128 could also benefit from a distinct ToString implementation so here it.

The last commit is just me realizing that I forgot to add the format tests for usize and isize.

@rustbot
Copy link
Collaborator

rustbot commented Jun 10, 2025

r? @workingjubilee

rustbot has assigned @workingjubilee.
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

@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 Jun 10, 2025
@bors
Copy link
Collaborator

bors commented Jun 12, 2025

☔ The latest upstream changes (presumably #136594) made this pull request unmergeable. Please resolve the merge conflicts.

@GuillaumeGomez GuillaumeGomez force-pushed the specialize-tostring-on-128-integers branch from b5b6654 to 53dc659 Compare June 13, 2025 12:11
@GuillaumeGomez
Copy link
Member Author

Fixed merge conflicts.

@workingjubilee workingjubilee changed the title Specialize ToString implementation on u128 and i128 Use a distinct ToString implementation for u128 and i128 Jun 13, 2025
@workingjubilee
Copy link
Member

Having done code review of things that use Rust's feature(min_specialization), I now consider "specialization" a dirty word.

@GuillaumeGomez
Copy link
Member Author

Noted, thanks for the title update then. :)

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.

4 participants