@@ -753,7 +753,6 @@ unstable_cli_options!(
753
753
build_std: Option <Vec <String >> = ( "Enable Cargo to compile the standard library itself as part of a crate graph compilation" ) ,
754
754
build_std_features: Option <Vec <String >> = ( "Configure features enabled for the standard library itself when building the standard library" ) ,
755
755
cargo_lints: bool = ( "Enable the `[lints.cargo]` table" ) ,
756
- check_cfg: bool = ( "Enable compile-time checking of `cfg` names/values/features" ) ,
757
756
codegen_backend: bool = ( "Enable the `codegen-backend` option in profiles in .cargo/config.toml file" ) ,
758
757
config_include: bool = ( "Enable the `include` key in config files" ) ,
759
758
direct_minimal_versions: bool = ( "Resolve minimal dependency versions instead of maximum (direct dependencies only)" ) ,
@@ -855,6 +854,9 @@ const STABILIZED_REGISTRY_AUTH: &str =
855
854
856
855
const STABILIZED_LINTS : & str = "The `[lints]` table is now always available." ;
857
856
857
+ const STABILIZED_CHECK_CFG : & str =
858
+ "Compile-time checking of conditional (a.k.a. `-Zcheck-cfg`) is now always enabled." ;
859
+
858
860
fn deserialize_build_std < ' de , D > ( deserializer : D ) -> Result < Option < Vec < String > > , D :: Error >
859
861
where
860
862
D : serde:: Deserializer < ' de > ,
@@ -1109,6 +1111,7 @@ impl CliUnstable {
1109
1111
"credential-process" => stabilized_warn ( k, "1.74" , STABILIZED_CREDENTIAL_PROCESS ) ,
1110
1112
"lints" => stabilized_warn ( k, "1.74" , STABILIZED_LINTS ) ,
1111
1113
"registry-auth" => stabilized_warn ( k, "1.74" , STABILIZED_REGISTRY_AUTH ) ,
1114
+ "check-cfg" => stabilized_warn ( k, "1.80" , STABILIZED_CHECK_CFG ) ,
1112
1115
1113
1116
// Unstable features
1114
1117
// Sorted alphabetically:
@@ -1122,9 +1125,6 @@ impl CliUnstable {
1122
1125
}
1123
1126
"build-std-features" => self . build_std_features = Some ( parse_features ( v) ) ,
1124
1127
"cargo-lints" => self . cargo_lints = parse_empty ( k, v) ?,
1125
- "check-cfg" => {
1126
- self . check_cfg = parse_empty ( k, v) ?;
1127
- }
1128
1128
"codegen-backend" => self . codegen_backend = parse_empty ( k, v) ?,
1129
1129
"config-include" => self . config_include = parse_empty ( k, v) ?,
1130
1130
"direct-minimal-versions" => self . direct_minimal_versions = parse_empty ( k, v) ?,
0 commit comments