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

Make auxiliary key code experimental #4061

Merged
merged 2 commits into from
Sep 21, 2023
Merged

Conversation

sffc
Copy link
Member

@sffc sffc commented Sep 21, 2023

Resolves 1.3 blocking aspects of #3632

I added an experimental feature instead of simply using doc(hidden) because

  1. These items are on stabilization track and we should use an experimental feature for that
  2. Using doc(hidden) would not prevent people from accidentally using the feature because it is still exposed in the FromStr impl

@sffc sffc requested review from Manishearth and a team as code owners September 21, 2023 00:21
Comment on lines +258 to +262
if aux_iter.next().is_some() {
return Err(DataErrorKind::KeyLocaleSyntax
.into_error()
.with_display_context(s));
}
Copy link
Member Author

Choose a reason for hiding this comment

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

Note: This code here is a behavior change (not allowing unknown characters after parsing), but this FromStr impl is new in this release. I added a test for it.

Manishearth
Manishearth previously approved these changes Sep 21, 2023
robertbastian
robertbastian previously approved these changes Sep 21, 2023
@robertbastian robertbastian dismissed stale reviews from Manishearth and themself via 62c733d September 21, 2023 10:25
@@ -58,7 +58,7 @@ icu_unitsconversion = { workspace = true, features = ["datagen"], optional = tru
icu_codepointtrie_builder = { workspace = true }
icu_collections = { workspace = true, features = ["serde"] }
icu_locid = { workspace = true, features = ["std", "serde"] }
icu_provider = { workspace = true, features = ["std", "logging", "datagen"]}
icu_provider = { workspace = true, features = ["std", "logging", "datagen", "experimental"]}
Copy link
Member Author

Choose a reason for hiding this comment

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

Okay, it's datagen. I didn't want the experimental feature globally enabled for library code but I guess it's fine here, especially since it gets transitively enabled from icu_transliterate.

@sffc sffc merged commit 3680104 into unicode-org:main Sep 21, 2023
25 checks passed
@sffc sffc deleted the aux-experimental branch September 21, 2023 15:50
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