-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Tracking Issue for const_unicode_case_lookup #101400
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Make `char::is_lowercase` and `char::is_uppercase` const Implements rust-lang#101400.
This has been unstable for more than a year, and since there are no reported issues or blockers I think this can be stabilized. The full API is making |
From skimming the implementation PR, I am apprehensive about seeing it convert many Unicode tables from I would not want to regret being forced to define Unicode tables as It would be good to get reassurance from a compiler perspective about whether committing to representing Unicode tables as |
#131641 resolves that. So I think this is ready for const-stabilization? |
…dtolnay switch unicode-data bitsets back to 'static' Back in rust-lang#101401, these were changed to `const` to make some functions `const fn`. However, `@dtolnay` was [not happy](rust-lang#101400 (comment)) about this. Meanwhile, `const fn` can access immutable statics like these, so we can change this back. Part of rust-lang#101400.
Team member @dtolnay has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
Rollup merge of rust-lang#131641 - RalfJung:unicode-bitset-static, r=dtolnay switch unicode-data bitsets back to 'static' Back in rust-lang#101401, these were changed to `const` to make some functions `const fn`. However, `@dtolnay` was [not happy](rust-lang#101400 (comment)) about this. Meanwhile, `const fn` can access immutable statics like these, so we can change this back. Part of rust-lang#101400.
This looks great. Could we do the same for the other |
@Amanieu @BurntSushi @m-ou-se friendly FCP checkbox reminder. :) This function is long stable, so making it const-stable should be uncontroversial. |
EDIT: EDIT2: The only other one we can currently make const is |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. This will be merged soon. |
Rollup merge of rust-lang#132948 - RalfJung:const_unicode_case_lookup, r=Noratrieb stabilize const_unicode_case_lookup Fixes rust-lang#101400 See there for t-libs-api FCP
Feature gate:
#![feature(const_unicode_case_lookup)]
This is a tracking issue for making
char::is_lowercase
andchar::is_uppercase
const.Public API
Example:
Steps / History
char::is_lowercase
andchar::is_uppercase
const #101401Unresolved Questions
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩
The text was updated successfully, but these errors were encountered: