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

More DateTime renames #5838

Merged
merged 9 commits into from
Nov 19, 2024
Merged

More DateTime renames #5838

merged 9 commits into from
Nov 19, 2024

Conversation

sffc
Copy link
Member

@sffc sffc commented Nov 19, 2024

Depends on #5836
Fixes #5840

Copy link

dpulls bot commented Nov 19, 2024

🎉 All dependencies have been resolved !

@sffc sffc marked this pull request as ready for review November 19, 2024 02:37
@sffc
Copy link
Member Author

sffc commented Nov 19, 2024

I think this is reviewable commit by commit if you prefer

@sffc sffc removed the request for review from zbraniecki November 19, 2024 02:37
@sffc
Copy link
Member Author

sffc commented Nov 19, 2024

@Manishearth Please verify that you are reasonably happy with the EmptyDataProvider solution to #5840

Comment on lines +139 to +145
///
/// // To make the error occur sooner, one can use an EmptyDataProvider:
/// let empty = EmptyDataProvider::new();
/// assert!(matches!(
/// names.load_for_pattern(&empty, &pattern),
/// Err(PatternLoadError::Data(_, Field { symbol: FieldSymbol::Weekday(_), .. })),
/// ));
Copy link
Member Author

Choose a reason for hiding this comment

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

Highlighting the new doc example here, the one that resolves #5840

@@ -13,14 +13,14 @@ size_test!(DateTimePattern, date_time_pattern_size, 32);

/// A pattern for formatting a datetime in a calendar.
///
/// [`DateTimePattern`] forgoes most internationalization functionality of the datetime crate.
/// ❗ This type forgoes most internationalization functionality of the datetime crate.
Copy link
Member

Choose a reason for hiding this comment

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

praise: good call

@Manishearth Manishearth merged commit 2e57d63 into unicode-org:main Nov 19, 2024
28 checks passed
@sffc sffc deleted the more-dt-renames branch November 19, 2024 04:09
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.

Figure out how to implement DateTimeNames::try_with_pattern
2 participants