diff --git a/CHANGELOG.md b/CHANGELOG.md index 0cbaa9f6bc6..d1a9945113e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,12 @@ # Changelog -## icu4x 1.5.x +## icu4x Unreleased +- Components + - General + - `PartialOrd` and `Ord` derived for `LanguageIdentifier`. + +## icu4x 1.5.x - `icu_calendar` - (1.5.1) Fix Japanese calendar Gregorian era year 0 (https://github.com/unicode-org/icu4x/issues/4968) diff --git a/components/locale_core/src/langid.rs b/components/locale_core/src/langid.rs index 022657ac21f..fb7c116c217 100644 --- a/components/locale_core/src/langid.rs +++ b/components/locale_core/src/langid.rs @@ -62,7 +62,7 @@ use writeable::Writeable; /// ``` /// /// [`Unicode BCP47 Language Identifier`]: https://unicode.org/reports/tr35/tr35.html#Unicode_language_identifier -#[derive(Default, PartialEq, Eq, Clone, Hash)] +#[derive(Default, PartialEq, Eq, Clone, Hash, PartialOrd, Ord)] #[allow(clippy::exhaustive_structs)] // This struct is stable (and invoked by a macro) pub struct LanguageIdentifier { /// Language subtag of the language identifier.