@@ -262,8 +262,10 @@ pub struct Config {
262262 pub rust_optimize : RustOptimize ,
263263 pub rust_codegen_units : Option < u32 > ,
264264 pub rust_codegen_units_std : Option < u32 > ,
265- pub rust_debug_assertions : bool ,
266- pub rust_debug_assertions_std : bool ,
265+
266+ pub rustc_debug_assertions : bool ,
267+ pub std_debug_assertions : bool ,
268+
267269 pub rust_overflow_checks : bool ,
268270 pub rust_overflow_checks_std : bool ,
269271 pub rust_debug_logging : bool ,
@@ -1109,9 +1111,9 @@ define_config! {
11091111 debug: Option <bool > = "debug" ,
11101112 codegen_units: Option <u32 > = "codegen-units" ,
11111113 codegen_units_std: Option <u32 > = "codegen-units-std" ,
1112- debug_assertions : Option <bool > = "debug-assertions" ,
1114+ rustc_debug_assertions : Option <bool > = "debug-assertions" ,
11131115 randomize_layout: Option <bool > = "randomize-layout" ,
1114- debug_assertions_std : Option <bool > = "debug-assertions-std" ,
1116+ std_debug_assertions : Option <bool > = "debug-assertions-std" ,
11151117 overflow_checks: Option <bool > = "overflow-checks" ,
11161118 overflow_checks_std: Option <bool > = "overflow-checks-std" ,
11171119 debug_logging: Option <bool > = "debug-logging" ,
@@ -1644,8 +1646,8 @@ impl Config {
16441646 let mut llvm_enzyme = None ;
16451647 let mut llvm_plugins = None ;
16461648 let mut debug = None ;
1647- let mut debug_assertions = None ;
1648- let mut debug_assertions_std = None ;
1649+ let mut rustc_debug_assertions = None ;
1650+ let mut std_debug_assertions = None ;
16491651 let mut overflow_checks = None ;
16501652 let mut overflow_checks_std = None ;
16511653 let mut debug_logging = None ;
@@ -1667,8 +1669,8 @@ impl Config {
16671669 debug : debug_toml,
16681670 codegen_units,
16691671 codegen_units_std,
1670- debug_assertions : debug_assertions_toml ,
1671- debug_assertions_std : debug_assertions_std_toml ,
1672+ rustc_debug_assertions : rustc_debug_assertions_toml ,
1673+ std_debug_assertions : std_debug_assertions_toml ,
16721674 overflow_checks : overflow_checks_toml,
16731675 overflow_checks_std : overflow_checks_std_toml,
16741676 debug_logging : debug_logging_toml,
@@ -1726,8 +1728,8 @@ impl Config {
17261728 config. download_ci_rustc_commit ( download_rustc, config. llvm_assertions ) ;
17271729
17281730 debug = debug_toml;
1729- debug_assertions = debug_assertions_toml ;
1730- debug_assertions_std = debug_assertions_std_toml ;
1731+ rustc_debug_assertions = rustc_debug_assertions_toml ;
1732+ std_debug_assertions = std_debug_assertions_toml ;
17311733 overflow_checks = overflow_checks_toml;
17321734 overflow_checks_std = overflow_checks_std_toml;
17331735 debug_logging = debug_logging_toml;
@@ -2136,14 +2138,13 @@ impl Config {
21362138 config. rust_std_features = std_features. unwrap_or ( default_std_features) ;
21372139
21382140 let default = debug == Some ( true ) ;
2139- config. rust_debug_assertions = debug_assertions. unwrap_or ( default) ;
2140- config. rust_debug_assertions_std =
2141- debug_assertions_std. unwrap_or ( config. rust_debug_assertions ) ;
2141+ config. rustc_debug_assertions = rustc_debug_assertions. unwrap_or ( default) ;
2142+ config. std_debug_assertions = std_debug_assertions. unwrap_or ( config. rustc_debug_assertions ) ;
21422143 config. rust_overflow_checks = overflow_checks. unwrap_or ( default) ;
21432144 config. rust_overflow_checks_std =
21442145 overflow_checks_std. unwrap_or ( config. rust_overflow_checks ) ;
21452146
2146- config. rust_debug_logging = debug_logging. unwrap_or ( config. rust_debug_assertions ) ;
2147+ config. rust_debug_logging = debug_logging. unwrap_or ( config. rustc_debug_assertions ) ;
21472148
21482149 let with_defaults = |debuginfo_level_specific : Option < _ > | {
21492150 debuginfo_level_specific. or ( debuginfo_level) . unwrap_or ( if debug == Some ( true ) {
@@ -3084,8 +3085,8 @@ fn check_incompatible_options_for_ci_rustc(
30843085 debug : _,
30853086 codegen_units : _,
30863087 codegen_units_std : _,
3087- debug_assertions : _,
3088- debug_assertions_std : _,
3088+ rustc_debug_assertions : _,
3089+ std_debug_assertions : _,
30893090 overflow_checks : _,
30903091 overflow_checks_std : _,
30913092 debuginfo_level : _,
0 commit comments