@@ -18,7 +18,7 @@ use rustc_parse::parser::attr::AllowLeadingUnsafe;
18
18
use rustc_query_impl:: QueryCtxt ;
19
19
use rustc_query_system:: query:: print_query_stack;
20
20
use rustc_session:: config:: { self , Cfg , CheckCfg , ExpectedValues , Input , OutFileName } ;
21
- use rustc_session:: filesearch:: { self , sysroot_candidates} ;
21
+ use rustc_session:: filesearch:: sysroot_candidates;
22
22
use rustc_session:: parse:: ParseSess ;
23
23
use rustc_session:: { CompilerIO , EarlyDiagCtxt , Session , lint} ;
24
24
use rustc_span:: source_map:: { FileLoader , RealFileLoader , SourceMapInputs } ;
@@ -390,7 +390,7 @@ pub fn run_compiler<R: Send>(config: Config, f: impl FnOnce(&Compiler) -> R + Se
390
390
391
391
crate :: callbacks:: setup_callbacks ( ) ;
392
392
393
- let sysroot = filesearch :: materialize_sysroot ( config. opts . maybe_sysroot . clone ( ) ) ;
393
+ let sysroot = config. opts . sysroot . clone ( ) ;
394
394
let target = config:: build_target_config ( & early_dcx, & config. opts . target_triple , & sysroot) ;
395
395
let file_loader = config. file_loader . unwrap_or_else ( || Box :: new ( RealFileLoader ) ) ;
396
396
let path_mapping = config. opts . file_path_mapping ( ) ;
@@ -424,7 +424,7 @@ pub fn run_compiler<R: Send>(config: Config, f: impl FnOnce(&Compiler) -> R + Se
424
424
let temps_dir = config. opts . unstable_opts . temps_dir . as_deref ( ) . map ( PathBuf :: from) ;
425
425
426
426
let bundle = match rustc_errors:: fluent_bundle (
427
- config. opts . maybe_sysroot . clone ( ) ,
427
+ config. opts . sysroot . clone ( ) ,
428
428
sysroot_candidates ( ) . to_vec ( ) ,
429
429
config. opts . unstable_opts . translate_lang . clone ( ) ,
430
430
config. opts . unstable_opts . translate_additional_ftl . as_deref ( ) ,
0 commit comments