about summary refs log tree commit diff
path: root/compiler/rustc_error_messages
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-03-12 13:54:41 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-03-12 15:05:25 +0000
commitf51d1d29f7776cc887971a890f8faf6e46aa3acd (patch)
tree2e20bc6982d1c2bbf2646807d4e0ad16bd9f52f6 /compiler/rustc_error_messages
parent926b5d2e4f8cbd6c5807efb18823e49e793002e3 (diff)
downloadrust-f51d1d29f7776cc887971a890f8faf6e46aa3acd.tar.gz
rust-f51d1d29f7776cc887971a890f8faf6e46aa3acd.zip
Rename user_provided_sysroot argument of fluent_bundle
Diffstat (limited to 'compiler/rustc_error_messages')
-rw-r--r--compiler/rustc_error_messages/src/lib.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/rustc_error_messages/src/lib.rs b/compiler/rustc_error_messages/src/lib.rs
index aa83ddf8d1f..fe0bf7df0b7 100644
--- a/compiler/rustc_error_messages/src/lib.rs
+++ b/compiler/rustc_error_messages/src/lib.rs
@@ -107,7 +107,7 @@ impl From<Vec<FluentError>> for TranslationBundleError {
 /// (overriding any conflicting messages).
 #[instrument(level = "trace")]
 pub fn fluent_bundle(
-    user_provided_sysroot: PathBuf,
+    sysroot: PathBuf,
     sysroot_candidates: Vec<PathBuf>,
     requested_locale: Option<LanguageIdentifier>,
     additional_ftl_path: Option<&Path>,
@@ -142,9 +142,7 @@ pub fn fluent_bundle(
     // If the user requests the default locale then don't try to load anything.
     if let Some(requested_locale) = requested_locale {
         let mut found_resources = false;
-        for mut sysroot in
-            Some(user_provided_sysroot).into_iter().chain(sysroot_candidates.into_iter())
-        {
+        for mut sysroot in Some(sysroot).into_iter().chain(sysroot_candidates.into_iter()) {
             sysroot.push("share");
             sysroot.push("locale");
             sysroot.push(requested_locale.to_string());