Skip to content

Stabilize hex_literal_case#6935

Open
tapanprakasht wants to merge 1 commit into
rust-lang:mainfrom
tapanprakasht:stabilize_hex_literal_case
Open

Stabilize hex_literal_case#6935
tapanprakasht wants to merge 1 commit into
rust-lang:mainfrom
tapanprakasht:stabilize_hex_literal_case

Conversation

@tapanprakasht
Copy link
Copy Markdown

Stabilizing hex_literal_case
This PR try to address the issue #5081

@rustbot rustbot added the S-waiting-on-review Status: awaiting review from the assignee but also interested parties. label May 31, 2026
Comment on lines +5 to +6
let h3 = -0xCAFE_5EA7;
let h4 = -0xCAFE_F00Di32;
Copy link
Copy Markdown
Contributor

@ytmimi ytmimi Jun 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding these negative value tests. Int literals can also be written with a _{type} suffixes like _u32. Just to cover all the bases I think we should add some test cases with those kinds of suffixes.

View changes since the review

Copy link
Copy Markdown
Contributor

@ytmimi ytmimi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for trying to get this option stabilized. I think hex_literal_case is a good candidate for stabilization. I don't see any bugs in the backlog, and I assume that it's being used by projects out in the wild, but we should try to confirm if there's a good amount of real world usage.

Also, For consistency with other config options, Let's move all of these tests to tests/{source|target}/configs/hex_literal_case

@rustbot author

View changes since this review

@rustbot rustbot removed the S-waiting-on-review Status: awaiting review from the assignee but also interested parties. label Jun 1, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Jun 1, 2026

Reminder, once the PR becomes ready for a review, use @rustbot ready.

@rustbot rustbot added the S-waiting-on-author Status: awaiting some action (such as code changes or more information) from the author. label Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: awaiting some action (such as code changes or more information) from the author.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants