Skip to content

core: implement char::is_xid_{start|continue} - #164474

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
sleepycatcoding:char_is_xid
Oct 24, 2026
Merged

rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
sleepycatcoding:char_is_xid

Conversation

@sleepycatcoding

@sleepycatcoding sleepycatcoding commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

This implements the XID Unicode API on char as accepted in ACP (rust-lang/libs-team#540).

Currently implemented very naively, using the default skiplist approach. I haven't opened a tracking issue yet, as I wasn't the one who opened the ACP and I'd like feedback if my approach is headed in the right direction.

No LLMs were used in the creation of this PR.

@rustbot

rustbot commented Oct 17, 2026

Copy link
Copy Markdown
Collaborator

Any special-casing of Miri in the standard library requires review.

cc @rust-lang/miri

library/core/src/unicode/unicode_data.rs is generated by the src/tools/unicode-table-generator tool.

If you want to modify unicode_data.rs, please modify the tool then regenerate the library source file via ./x run src/tools/unicode-table-generator instead of editing unicode_data.rs manually.

@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 Oct 17, 2026
@rustbot

rustbot commented Oct 17, 2026

Copy link
Copy Markdown
Collaborator

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
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: libs
  • libs expanded to 12 candidates
  • Random selection from JohnTitor, Mark-Simulacrum

@rust-log-analyzer

This comment has been minimized.

@sleepycatcoding

Copy link
Copy Markdown
Contributor Author

Any special-casing of Miri in the standard library requires review.

To be clear, the only special-casing is in the core's Unicode tests, I just copied how the other tests do it.

Comment thread library/core/src/char/methods.rs Resolved
@ChrisDenton

Copy link
Copy Markdown
Member

Thanks!

r? ChrisDenton
@bors r+

@rust-bors

rust-bors Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 54f7917 has been approved by ChrisDenton

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 23, 2026
rust-bors Bot pushed a commit that referenced this pull request Oct 23, 2026
…uwer

Rollup of 9 pull requests

Successful merges:

 - #163743 (std: simplify the miri bypass of the stack overflow detection logic)
 - #164474 (core: implement `char::is_xid_{start|continue}`)
 - #164643 (Const-stabilize `{BinaryHeap, BTreeMap, BTreeSet, LinkedList, VecDeque)::{len, is_empty}`)
 - #164739 (Use cfi_encoding instead of name in abi checking in miri)
 - #162927 (stabilize ptr_cast_slice)
 - #163372 (Restrict `PartialEq` and `PartialOrd` documentation to thin pointers)
 - #164261 (Simplify MSYS check in is_terminal on Windows)
 - #164698 (Remove FCP from libs tracking checklist)
 - #164810 (Don't prioritize issues that require internal features)
@rust-bors
rust-bors Bot merged commit f5360c1 into rust-lang:main Oct 24, 2026
14 checks passed
@rustbot rustbot added this to the 1.101.0 milestone Oct 24, 2026
rust-bors Bot pushed a commit that referenced this pull request Oct 24, 2026
Rollup merge of #164474 - sleepycatcoding:char_is_xid, r=ChrisDenton

core: implement `char::is_xid_{start|continue}`

This implements the XID Unicode API on `char` as accepted in ACP (rust-lang/libs-team#540).

Currently implemented very naively, using the default skiplist approach. I haven't opened a tracking issue yet, as I wasn't the one who opened the ACP and I'd like feedback if my approach is headed in the right direction.

No LLMs were used in the creation of this PR.
@sleepycatcoding
sleepycatcoding deleted the char_is_xid branch October 24, 2026 04:26
programskillforverification pushed a commit to programskillforverification/miri that referenced this pull request Oct 24, 2026
…uwer

Rollup of 9 pull requests

Successful merges:

 - rust-lang/rust#163743 (std: simplify the miri bypass of the stack overflow detection logic)
 - rust-lang/rust#164474 (core: implement `char::is_xid_{start|continue}`)
 - rust-lang/rust#164643 (Const-stabilize `{BinaryHeap, BTreeMap, BTreeSet, LinkedList, VecDeque)::{len, is_empty}`)
 - rust-lang/rust#164739 (Use cfi_encoding instead of name in abi checking in miri)
 - rust-lang/rust#162927 (stabilize ptr_cast_slice)
 - rust-lang/rust#163372 (Restrict `PartialEq` and `PartialOrd` documentation to thin pointers)
 - rust-lang/rust#164261 (Simplify MSYS check in is_terminal on Windows)
 - rust-lang/rust#164698 (Remove FCP from libs tracking checklist)
 - rust-lang/rust#164810 (Don't prioritize issues that require internal features)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. 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.

6 participants