Skip to content

Make char::is_default_ignorable unstably public#157944

Open
Jules-Bertholet wants to merge 1 commit into
rust-lang:mainfrom
Jules-Bertholet:is-default-ignorable
Open

Make char::is_default_ignorable unstably public#157944
Jules-Bertholet wants to merge 1 commit into
rust-lang:mainfrom
Jules-Bertholet:is-default-ignorable

Conversation

@Jules-Bertholet

@Jules-Bertholet Jules-Bertholet commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Similar to #154849; this function is used in the implementation of char::escape_debug(), and there's no reason to force crates to duplicate a data table that std has to ship anyway.

I'll add a tracking issue if this is approved.

(I'll do the other data tables from #155527 in separate PRs.)

@rustbot label A-Unicode T-libs-api

r? @Mark-Simulacrum

@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. A-Unicode Area: Unicode T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. labels Jun 15, 2026
@rust-log-analyzer

This comment has been minimized.

@Jules-Bertholet Jules-Bertholet changed the title Promote char::is_default_ignorable from perma-unstable to unstable Make char::is_default_ignorable public and unstable Jun 15, 2026
@Jules-Bertholet Jules-Bertholet changed the title Make char::is_default_ignorable public and unstable Make char::is_default_ignorable unstably public Jun 15, 2026
@Mark-Simulacrum

Copy link
Copy Markdown
Member

r=me here, I think this one is probably non-controversial so no need for an ACP. Worst case we move it back to private.

@Mark-Simulacrum Mark-Simulacrum 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 Jun 21, 2026
jhpratt added a commit to jhpratt/rust that referenced this pull request Jun 24, 2026
…ivate-use, r=Mark-Simulacrum

Make `char::is_private_use` and `char::is_assigned` unstably public

See also rust-lang#157944, rust-lang#154849. These functions are used in the implementation of `char::escape_debug()`, and there's no reason to force crates to duplicate data tables that std has to ship anyway. `is_assigned` is especially useful because crates relying on the stability guarantees of the other Unicode methods in `char` may wish to reject unassigned characters where those guarantees do not hold.

I'll add a tracking issue if this is approved.

The `is_assigned` vs `is_unassigned` bikeshed probably needs libs-API review before merging?

@rustbot label A-Unicode T-libs-api

r? @Mark-Simulacrum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Unicode Area: Unicode S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-libs Relevant to the library team, which will review and decide on the PR/issue. T-libs-api Relevant to the library API 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