Skip to content

Conversation

Kmeakin
Copy link
Contributor

@Kmeakin Kmeakin commented Aug 16, 2025

Split off from #145219

According to
https://www.unicode.org/policies/stability_policy.html#Property_Value, the set of codepoints in Cc will never change. So we can hard-code the patterns to match against instead of using a table.

This doesn't change the generated assembly, since the lookup table is small enough that LLVM is able to inline the whole search. But this does reduce the chance of regressions if LLVM's heuristics change in the future, and means less generated Rust code checked in to unicode-data.rs.

According to
https://www.unicode.org/policies/stability_policy.html#Property_Value,
the set of codepoints in `Cc` will never change. So we can hard-code
the patterns to match against instead of using a table.
@rustbot
Copy link
Collaborator

rustbot commented Aug 16, 2025

r? @thomcc

rustbot has assigned @thomcc.
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 Aug 16, 2025
@rustbot
Copy link
Collaborator

rustbot commented Aug 16, 2025

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

jhpratt added a commit to jhpratt/rust that referenced this pull request Aug 17, 2025
Fix `unicode_data.rs` mention message

The [previous message](rust-lang#145479 (comment)) was weirdly formatted, let's render it properly.
jhpratt added a commit to jhpratt/rust that referenced this pull request Aug 17, 2025
Fix `unicode_data.rs` mention message

The [previous message](rust-lang#145479 (comment)) was weirdly formatted, let's render it properly.
Zalathar added a commit to Zalathar/rust that referenced this pull request Aug 18, 2025
Fix `unicode_data.rs` mention message

The [previous message](rust-lang#145479 (comment)) was weirdly formatted, let's render it properly.
Zalathar added a commit to Zalathar/rust that referenced this pull request Aug 18, 2025
Fix `unicode_data.rs` mention message

The [previous message](rust-lang#145479 (comment)) was weirdly formatted, let's render it properly.
jhpratt added a commit to jhpratt/rust that referenced this pull request Aug 18, 2025
Fix `unicode_data.rs` mention message

The [previous message](rust-lang#145479 (comment)) was weirdly formatted, let's render it properly.
jhpratt added a commit to jhpratt/rust that referenced this pull request Aug 18, 2025
Fix `unicode_data.rs` mention message

The [previous message](rust-lang#145479 (comment)) was weirdly formatted, let's render it properly.
jieyouxu added a commit to jieyouxu/rust that referenced this pull request Aug 19, 2025
Fix `unicode_data.rs` mention message

The [previous message](rust-lang#145479 (comment)) was weirdly formatted, let's render it properly.
rust-timer added a commit that referenced this pull request Aug 19, 2025
Rollup merge of #145486 - Urgau:unicode-mention, r=lqd

Fix `unicode_data.rs` mention message

The [previous message](#145479 (comment)) was weirdly formatted, let's render it properly.
github-actions bot pushed a commit to rust-lang/miri that referenced this pull request Aug 20, 2025
Fix `unicode_data.rs` mention message

The [previous message](rust-lang/rust#145479 (comment)) was weirdly formatted, let's render it properly.
github-actions bot pushed a commit to rust-lang/rustc-dev-guide that referenced this pull request Aug 25, 2025
Fix `unicode_data.rs` mention message

The [previous message](rust-lang/rust#145479 (comment)) was weirdly formatted, let's render it properly.
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.

3 participants