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_segmenter #3570

Merged
merged 1 commit into from
Jun 26, 2023
Merged

Conversation

robertbastian
Copy link
Member

@robertbastian robertbastian commented Jun 22, 2023

Manishearth
Manishearth previously approved these changes Jun 22, 2023
sffc
sffc previously approved these changes Jun 23, 2023
+ ?Sized,
{
Self::try_new_auto_with_options_unstable(provider, Default::default())
pub fn new_auto() -> Self {
Copy link
Member

Choose a reason for hiding this comment

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

Question: why aren't you auto-generating the impls for the globaldata constructors in this crate?

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 dismissed stale reviews from sffc and Manishearth via 1d41bba June 23, 2023 12:33
@robertbastian robertbastian force-pushed the segmenter branch 2 times, most recently from 1d41bba to d915061 Compare June 23, 2023 13:36
@robertbastian robertbastian requested a review from sffc June 23, 2023 14:09
Copy link
Member

@sffc sffc left a comment

Choose a reason for hiding this comment

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

We really need to make sure all the constructors are covered, especially when we don't auto-generate them with the macro. A general problem not specific to this PR

@robertbastian robertbastian merged commit c49a295 into unicode-org:main Jun 26, 2023
23 checks passed
@robertbastian robertbastian deleted the segmenter 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.

None yet

3 participants