File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
compiler/rustc_error_messages/src Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ impl From<Vec<FluentError>> for TranslationBundleError {
107107/// (overriding any conflicting messages).
108108#[ instrument( level = "trace" ) ]
109109pub fn fluent_bundle (
110- user_provided_sysroot : PathBuf ,
110+ sysroot : PathBuf ,
111111 sysroot_candidates : Vec < PathBuf > ,
112112 requested_locale : Option < LanguageIdentifier > ,
113113 additional_ftl_path : Option < & Path > ,
@@ -142,9 +142,7 @@ pub fn fluent_bundle(
142142 // If the user requests the default locale then don't try to load anything.
143143 if let Some ( requested_locale) = requested_locale {
144144 let mut found_resources = false ;
145- for mut sysroot in
146- Some ( user_provided_sysroot) . into_iter ( ) . chain ( sysroot_candidates. into_iter ( ) )
147- {
145+ for mut sysroot in Some ( sysroot) . into_iter ( ) . chain ( sysroot_candidates. into_iter ( ) ) {
148146 sysroot. push ( "share" ) ;
149147 sysroot. push ( "locale" ) ;
150148 sysroot. push ( requested_locale. to_string ( ) ) ;
You can’t perform that action at this time.
0 commit comments