@@ -263,8 +263,10 @@ pub struct Config {
263
263
pub rust_optimize : RustOptimize ,
264
264
pub rust_codegen_units : Option < u32 > ,
265
265
pub rust_codegen_units_std : Option < u32 > ,
266
- pub rust_debug_assertions : bool ,
267
- pub rust_debug_assertions_std : bool ,
266
+
267
+ pub rustc_debug_assertions : bool ,
268
+ pub std_debug_assertions : bool ,
269
+
268
270
pub rust_overflow_checks : bool ,
269
271
pub rust_overflow_checks_std : bool ,
270
272
pub rust_debug_logging : bool ,
@@ -1115,9 +1117,9 @@ define_config! {
1115
1117
debug: Option <bool > = "debug" ,
1116
1118
codegen_units: Option <u32 > = "codegen-units" ,
1117
1119
codegen_units_std: Option <u32 > = "codegen-units-std" ,
1118
- debug_assertions : Option <bool > = "debug-assertions" ,
1120
+ rustc_debug_assertions : Option <bool > = "debug-assertions" ,
1119
1121
randomize_layout: Option <bool > = "randomize-layout" ,
1120
- debug_assertions_std : Option <bool > = "debug-assertions-std" ,
1122
+ std_debug_assertions : Option <bool > = "debug-assertions-std" ,
1121
1123
overflow_checks: Option <bool > = "overflow-checks" ,
1122
1124
overflow_checks_std: Option <bool > = "overflow-checks-std" ,
1123
1125
debug_logging: Option <bool > = "debug-logging" ,
@@ -1652,8 +1654,8 @@ impl Config {
1652
1654
let mut llvm_offload = None ;
1653
1655
let mut llvm_plugins = None ;
1654
1656
let mut debug = None ;
1655
- let mut debug_assertions = None ;
1656
- let mut debug_assertions_std = None ;
1657
+ let mut rustc_debug_assertions = None ;
1658
+ let mut std_debug_assertions = None ;
1657
1659
let mut overflow_checks = None ;
1658
1660
let mut overflow_checks_std = None ;
1659
1661
let mut debug_logging = None ;
@@ -1675,8 +1677,8 @@ impl Config {
1675
1677
debug : debug_toml,
1676
1678
codegen_units,
1677
1679
codegen_units_std,
1678
- debug_assertions : debug_assertions_toml ,
1679
- debug_assertions_std : debug_assertions_std_toml ,
1680
+ rustc_debug_assertions : rustc_debug_assertions_toml ,
1681
+ std_debug_assertions : std_debug_assertions_toml ,
1680
1682
overflow_checks : overflow_checks_toml,
1681
1683
overflow_checks_std : overflow_checks_std_toml,
1682
1684
debug_logging : debug_logging_toml,
@@ -1734,8 +1736,8 @@ impl Config {
1734
1736
config. download_ci_rustc_commit ( download_rustc, config. llvm_assertions ) ;
1735
1737
1736
1738
debug = debug_toml;
1737
- debug_assertions = debug_assertions_toml ;
1738
- debug_assertions_std = debug_assertions_std_toml ;
1739
+ rustc_debug_assertions = rustc_debug_assertions_toml ;
1740
+ std_debug_assertions = std_debug_assertions_toml ;
1739
1741
overflow_checks = overflow_checks_toml;
1740
1742
overflow_checks_std = overflow_checks_std_toml;
1741
1743
debug_logging = debug_logging_toml;
@@ -2148,14 +2150,13 @@ impl Config {
2148
2150
config. rust_std_features = std_features. unwrap_or ( default_std_features) ;
2149
2151
2150
2152
let default = debug == Some ( true ) ;
2151
- config. rust_debug_assertions = debug_assertions. unwrap_or ( default) ;
2152
- config. rust_debug_assertions_std =
2153
- debug_assertions_std. unwrap_or ( config. rust_debug_assertions ) ;
2153
+ config. rustc_debug_assertions = rustc_debug_assertions. unwrap_or ( default) ;
2154
+ config. std_debug_assertions = std_debug_assertions. unwrap_or ( config. rustc_debug_assertions ) ;
2154
2155
config. rust_overflow_checks = overflow_checks. unwrap_or ( default) ;
2155
2156
config. rust_overflow_checks_std =
2156
2157
overflow_checks_std. unwrap_or ( config. rust_overflow_checks ) ;
2157
2158
2158
- config. rust_debug_logging = debug_logging. unwrap_or ( config. rust_debug_assertions ) ;
2159
+ config. rust_debug_logging = debug_logging. unwrap_or ( config. rustc_debug_assertions ) ;
2159
2160
2160
2161
let with_defaults = |debuginfo_level_specific : Option < _ > | {
2161
2162
debuginfo_level_specific. or ( debuginfo_level) . unwrap_or ( if debug == Some ( true ) {
@@ -3075,8 +3076,8 @@ fn check_incompatible_options_for_ci_rustc(
3075
3076
debug : _,
3076
3077
codegen_units : _,
3077
3078
codegen_units_std : _,
3078
- debug_assertions : _,
3079
- debug_assertions_std : _,
3079
+ rustc_debug_assertions : _,
3080
+ std_debug_assertions : _,
3080
3081
overflow_checks : _,
3081
3082
overflow_checks_std : _,
3082
3083
debuginfo_level : _,
0 commit comments