@@ -873,8 +873,7 @@ impl Config {
873
873
None => false ,
874
874
} ;
875
875
876
- let default = channel == "dev" ;
877
- let omit_git_hash = rust_omit_git_hash. unwrap_or ( default) ;
876
+ let omit_git_hash = rust_omit_git_hash. unwrap_or ( channel == "dev" ) ;
878
877
879
878
rust_info = git_info ( & exec_ctx, omit_git_hash, & src) ;
880
879
let cargo_info = git_info ( & exec_ctx, omit_git_hash, & src. join ( "src/tools/cargo" ) ) ;
@@ -1317,14 +1316,6 @@ impl Config {
1317
1316
)
1318
1317
} ;
1319
1318
1320
- if rust_optimize_. as_ref ( ) . is_some_and ( |v| matches ! ( v, RustOptimize :: Bool ( false ) ) ) {
1321
- eprintln ! (
1322
- "WARNING: setting `optimize` to `false` is known to cause errors and \
1323
- should be considered unsupported. Refer to `bootstrap.example.toml` \
1324
- for more details."
1325
- ) ;
1326
- }
1327
-
1328
1319
Config {
1329
1320
out,
1330
1321
rust_info,
@@ -1363,6 +1354,12 @@ impl Config {
1363
1354
channel,
1364
1355
is_running_on_ci,
1365
1356
path_modification_cache,
1357
+ patch_binaries_for_nix,
1358
+ stage0_metadata,
1359
+ download_rustc_commit,
1360
+ llvm_thin_lto,
1361
+ llvm_link_shared,
1362
+ rustc_debug_assertions,
1366
1363
change_id : toml. change_id . inner ,
1367
1364
bypass_bootstrap_lock : flags_bypass_bootstrap_lock,
1368
1365
ccache : match build_ccache {
@@ -1389,8 +1386,6 @@ impl Config {
1389
1386
compile_time_deps : flags_compile_time_deps,
1390
1387
test_compare_mode : rust_test_compare_mode. unwrap_or ( false ) ,
1391
1388
color : flags_color,
1392
- patch_binaries_for_nix,
1393
- stage0_metadata,
1394
1389
android_ndk : build_android_ndk,
1395
1390
optimized_compiler_builtins,
1396
1391
stdout_is_tty : std:: io:: stdout ( ) . is_terminal ( ) ,
@@ -1411,7 +1406,6 @@ impl Config {
1411
1406
incremental : flags_incremental || rust_incremental == Some ( true ) ,
1412
1407
dump_bootstrap_shims : flags_dump_bootstrap_shims,
1413
1408
free_args : flags_free_args,
1414
- download_rustc_commit,
1415
1409
deny_warnings : match flags_warnings {
1416
1410
Warnings :: Deny => true ,
1417
1411
Warnings :: Warn => false ,
@@ -1423,11 +1417,9 @@ impl Config {
1423
1417
llvm_offload : llvm_offload_. unwrap_or ( false ) ,
1424
1418
llvm_plugins : llvm_plugin. unwrap_or_default ( ) ,
1425
1419
llvm_optimize : llvm_optimize_. unwrap_or ( true ) ,
1426
- llvm_thin_lto,
1427
1420
llvm_release_debuginfo : llvm_release_debuginfo_. unwrap_or ( false ) ,
1428
1421
llvm_static_stdcpp : llvm_static_libstdcpp. unwrap_or ( false ) ,
1429
1422
llvm_libzstd : llvm_libzstd_. unwrap_or ( false ) ,
1430
- llvm_link_shared,
1431
1423
llvm_clang_cl : llvm_clang_cl_,
1432
1424
llvm_targets : llvm_targets_,
1433
1425
llvm_experimental_targets : llvm_experimental_targets_,
@@ -1455,7 +1447,6 @@ impl Config {
1455
1447
rust_optimize : rust_optimize_. unwrap_or ( RustOptimize :: Bool ( true ) ) ,
1456
1448
rust_codegen_units : rust_codegen_units_. map ( threads_from_config) ,
1457
1449
rust_codegen_units_std : rust_codegen_units_std_. map ( threads_from_config) ,
1458
- rustc_debug_assertions,
1459
1450
std_debug_assertions : rust_std_debug_assertions. unwrap_or ( rustc_debug_assertions) ,
1460
1451
tools_debug_assertions : rust_tools_debug_assertions. unwrap_or ( rustc_debug_assertions) ,
1461
1452
rust_overflow_checks_std : rust_overflow_checks_std_. unwrap_or ( rust_overflow_checks) ,
0 commit comments