Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Baked data for icu_normalizer #3571

Merged
merged 1 commit into from
Jun 26, 2023

Conversation

robertbastian
Copy link
Member

#2945

Based on #3565

Manishearth
Manishearth previously approved these changes Jun 22, 2023
);
#[doc(hidden)]
#[cfg(all(feature = "experimental", feature = "data"))]
pub const fn new_uts46_decomposed_without_ignored_and_disallowed() -> Self {
Copy link
Member

Choose a reason for hiding this comment

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

Nit: You should be able to auto-generate this, right? It's just calling _unstable with crate::provider::Baked? I guess the difference is that you avoid the singleton check; is that it?

Copy link
Member Author

Choose a reason for hiding this comment

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

Auto generated constructors will go through DataProvider::load and be fallible. This uses singletons and is infallible.

@robertbastian robertbastian merged commit 1ee019f into unicode-org:main Jun 26, 2023
@robertbastian robertbastian deleted the normalizer branch June 26, 2023 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants