diff options
| author | Robert Bastian <robertbastian@unicode.org> | 2025-08-28 09:48:54 +0000 |
|---|---|---|
| committer | Robert Bastian <robertbastian@unicode.org> | 2025-08-28 09:48:54 +0000 |
| commit | 359cbd205f4d8a1d4c3f03307fe2ca524c378340 (patch) | |
| tree | f497f0fd097cd36aed589a00e357558641c37e57 /compiler/rustc_error_messages | |
| parent | d82a20e025701be09e87fbfa3a49bc4c2ae5662c (diff) | |
| download | rust-359cbd205f4d8a1d4c3f03307fe2ca524c378340.tar.gz rust-359cbd205f4d8a1d4c3f03307fe2ca524c378340.zip | |
Use default locale fallback data
Diffstat (limited to 'compiler/rustc_error_messages')
| -rw-r--r-- | compiler/rustc_error_messages/Cargo.toml | 1 | ||||
| -rw-r--r-- | compiler/rustc_error_messages/src/lib.rs | 10 |
2 files changed, 1 insertions, 10 deletions
diff --git a/compiler/rustc_error_messages/Cargo.toml b/compiler/rustc_error_messages/Cargo.toml index b9f97a60fc3..7d2dc20e136 100644 --- a/compiler/rustc_error_messages/Cargo.toml +++ b/compiler/rustc_error_messages/Cargo.toml @@ -9,7 +9,6 @@ fluent-bundle = "0.16" fluent-syntax = "0.12" icu_list = { version = "2.0", default-features = false, features = ["alloc"] } icu_locale = { version = "2.0", default-features = false } -icu_provider_adapters = "2.0" intl-memoizer = "0.5.1" rustc_ast = { path = "../rustc_ast" } rustc_ast_pretty = { path = "../rustc_ast_pretty" } diff --git a/compiler/rustc_error_messages/src/lib.rs b/compiler/rustc_error_messages/src/lib.rs index abc298ed4a3..7b7843f6cf3 100644 --- a/compiler/rustc_error_messages/src/lib.rs +++ b/compiler/rustc_error_messages/src/lib.rs @@ -567,18 +567,10 @@ pub fn fluent_value_from_str_list_sep_by_and(l: Vec<Cow<'_, str>>) -> FluentValu where Self: Sized, { - let baked_data_provider = rustc_baked_icu_data::baked_data_provider(); - let locale_fallbacker = - icu_locale::LocaleFallbacker::try_new_unstable(&baked_data_provider) - .expect("Failed to create fallback provider"); - let data_provider = icu_provider_adapters::fallback::LocaleFallbackProvider::new( - baked_data_provider, - locale_fallbacker, - ); let locale = icu_locale_from_unic_langid(lang) .unwrap_or_else(|| rustc_baked_icu_data::supported_locales::EN); let list_formatter = icu_list::ListFormatter::try_new_and_unstable( - &data_provider, + &rustc_baked_icu_data::BakedDataProvider, locale.into(), icu_list::options::ListFormatterOptions::default() .with_length(icu_list::options::ListLength::Wide), |
