@@ -306,6 +306,7 @@ pub struct Config {
306
306
307
307
pub rustc_debug_assertions : bool ,
308
308
pub std_debug_assertions : bool ,
309
+ pub tools_debug_assertions : bool ,
309
310
310
311
pub rust_overflow_checks : bool ,
311
312
pub rust_overflow_checks_std : bool ,
@@ -1280,6 +1281,7 @@ define_config! {
1280
1281
rustc_debug_assertions: Option <bool > = "debug-assertions" ,
1281
1282
randomize_layout: Option <bool > = "randomize-layout" ,
1282
1283
std_debug_assertions: Option <bool > = "debug-assertions-std" ,
1284
+ tools_debug_assertions: Option <bool > = "debug-assertions-tools" ,
1283
1285
overflow_checks: Option <bool > = "overflow-checks" ,
1284
1286
overflow_checks_std: Option <bool > = "overflow-checks-std" ,
1285
1287
debug_logging: Option <bool > = "debug-logging" ,
@@ -1937,6 +1939,7 @@ impl Config {
1937
1939
let mut debug = None ;
1938
1940
let mut rustc_debug_assertions = None ;
1939
1941
let mut std_debug_assertions = None ;
1942
+ let mut tools_debug_assertions = None ;
1940
1943
let mut overflow_checks = None ;
1941
1944
let mut overflow_checks_std = None ;
1942
1945
let mut debug_logging = None ;
@@ -2000,6 +2003,7 @@ impl Config {
2000
2003
codegen_units_std,
2001
2004
rustc_debug_assertions : rustc_debug_assertions_toml,
2002
2005
std_debug_assertions : std_debug_assertions_toml,
2006
+ tools_debug_assertions : tools_debug_assertions_toml,
2003
2007
overflow_checks : overflow_checks_toml,
2004
2008
overflow_checks_std : overflow_checks_std_toml,
2005
2009
debug_logging : debug_logging_toml,
@@ -2084,6 +2088,7 @@ impl Config {
2084
2088
debug = debug_toml;
2085
2089
rustc_debug_assertions = rustc_debug_assertions_toml;
2086
2090
std_debug_assertions = std_debug_assertions_toml;
2091
+ tools_debug_assertions = tools_debug_assertions_toml;
2087
2092
overflow_checks = overflow_checks_toml;
2088
2093
overflow_checks_std = overflow_checks_std_toml;
2089
2094
debug_logging = debug_logging_toml;
@@ -2509,6 +2514,8 @@ impl Config {
2509
2514
let default = debug == Some ( true ) ;
2510
2515
config. rustc_debug_assertions = rustc_debug_assertions. unwrap_or ( default) ;
2511
2516
config. std_debug_assertions = std_debug_assertions. unwrap_or ( config. rustc_debug_assertions ) ;
2517
+ config. tools_debug_assertions =
2518
+ tools_debug_assertions. unwrap_or ( config. rustc_debug_assertions ) ;
2512
2519
config. rust_overflow_checks = overflow_checks. unwrap_or ( default) ;
2513
2520
config. rust_overflow_checks_std =
2514
2521
overflow_checks_std. unwrap_or ( config. rust_overflow_checks ) ;
@@ -3568,6 +3575,7 @@ fn check_incompatible_options_for_ci_rustc(
3568
3575
codegen_units_std : _,
3569
3576
rustc_debug_assertions : _,
3570
3577
std_debug_assertions : _,
3578
+ tools_debug_assertions : _,
3571
3579
overflow_checks : _,
3572
3580
overflow_checks_std : _,
3573
3581
debuginfo_level : _,
0 commit comments