@@ -665,9 +665,6 @@ impl Config {
665665 exec_ctx. set_verbosity ( cmp:: max ( build_verbose. unwrap_or_default ( ) as u8 , flags_verbose) ) ;
666666
667667 let stage0_metadata = build_helper:: stage0_parser:: parse_stage0_file ( ) ;
668- let bootstrap_cache_path = build_bootstrap_cache_path;
669- let patch_binaries_for_nix = build_patch_binaries_for_nix;
670-
671668 let path_modification_cache = Arc :: new ( Mutex :: new ( HashMap :: new ( ) ) ) ;
672669
673670 let host_target = flags_build
@@ -681,7 +678,6 @@ impl Config {
681678 } )
682679 . unwrap_or_else ( || vec ! [ host_target] ) ;
683680
684- let submodules = build_submodules;
685681 let llvm_assertions = llvm_assertions_. unwrap_or ( false ) ;
686682
687683 let mut target_config = HashMap :: new ( ) ;
@@ -739,17 +735,17 @@ impl Config {
739735 path_modification_cache : path_modification_cache. clone ( ) ,
740736 src : & src,
741737 rust_info : rust_info. clone ( ) ,
742- submodules : & submodules ,
738+ submodules : & build_submodules ,
743739 download_rustc_commit : download_rustc_commit. clone ( ) ,
744740 host_target,
745741 llvm_from_ci,
746742 target_config : target_config. clone ( ) ,
747743 out : out. clone ( ) ,
748- patch_binaries_for_nix,
744+ patch_binaries_for_nix : build_patch_binaries_for_nix ,
749745 exec_ctx : & exec_ctx,
750746 stage0_metadata : & stage0_metadata,
751747 llvm_assertions,
752- bootstrap_cache_path : & bootstrap_cache_path ,
748+ bootstrap_cache_path : & build_bootstrap_cache_path ,
753749 is_running_on_ci,
754750 } ;
755751
@@ -873,7 +869,7 @@ impl Config {
873869 }
874870 if let Some ( patches) = cfg. llvm_has_rust_patches {
875871 assert ! (
876- submodules == Some ( false ) || cfg. llvm_config. is_some( ) ,
872+ build_submodules == Some ( false ) || cfg. llvm_config. is_some( ) ,
877873 "use of `llvm-has-rust-patches` is restricted to cases where either submodules are disabled or llvm-config been provided"
878874 ) ;
879875 target. llvm_has_rust_patches = Some ( patches) ;
@@ -1131,7 +1127,7 @@ impl Config {
11311127 docs : build_docs. unwrap_or ( true ) ,
11321128 locked_deps : build_locked_deps. unwrap_or ( false ) ,
11331129 full_bootstrap : build_full_bootstrap. unwrap_or ( false ) ,
1134- bootstrap_cache_path,
1130+ bootstrap_cache_path : build_bootstrap_cache_path ,
11351131 extended : build_extended. unwrap_or ( false ) ,
11361132 tools : build_tools,
11371133 tool : build_tool. unwrap_or_default ( ) ,
@@ -1341,15 +1337,16 @@ impl Config {
13411337 && src. join ( "vendor" ) . exists ( )
13421338 && src. join ( ".cargo/config.toml" ) . exists ( ) ,
13431339 ) ,
1340+ patch_binaries_for_nix : build_patch_binaries_for_nix,
13441341 cmd : flags_cmd,
1342+ submodules : build_submodules,
13451343 exec_ctx,
13461344 out,
13471345 rust_info,
13481346 initial_cargo,
13491347 initial_rustc,
13501348 initial_sysroot,
13511349 initial_rustfmt,
1352- submodules,
13531350 target_config,
13541351 omit_git_hash,
13551352 stage,
@@ -1362,7 +1359,6 @@ impl Config {
13621359 channel,
13631360 is_running_on_ci,
13641361 path_modification_cache,
1365- patch_binaries_for_nix,
13661362 stage0_metadata,
13671363 download_rustc_commit,
13681364 llvm_link_shared,
0 commit comments