@@ -753,7 +753,6 @@ unstable_cli_options!(
753753 build_std: Option <Vec <String >> = ( "Enable Cargo to compile the standard library itself as part of a crate graph compilation" ) ,
754754 build_std_features: Option <Vec <String >> = ( "Configure features enabled for the standard library itself when building the standard library" ) ,
755755 cargo_lints: bool = ( "Enable the `[lints.cargo]` table" ) ,
756- check_cfg: bool = ( "Enable compile-time checking of `cfg` names/values/features" ) ,
757756 codegen_backend: bool = ( "Enable the `codegen-backend` option in profiles in .cargo/config.toml file" ) ,
758757 config_include: bool = ( "Enable the `include` key in config files" ) ,
759758 direct_minimal_versions: bool = ( "Resolve minimal dependency versions instead of maximum (direct dependencies only)" ) ,
@@ -855,6 +854,9 @@ const STABILIZED_REGISTRY_AUTH: &str =
855854
856855const STABILIZED_LINTS : & str = "The `[lints]` table is now always available." ;
857856
857+ const STABILIZED_CHECK_CFG : & str =
858+ "Compile-time checking of conditional (a.k.a. `-Zcheck-cfg`) is now always enabled." ;
859+
858860fn deserialize_build_std < ' de , D > ( deserializer : D ) -> Result < Option < Vec < String > > , D :: Error >
859861where
860862 D : serde:: Deserializer < ' de > ,
@@ -1109,6 +1111,7 @@ impl CliUnstable {
11091111 "credential-process" => stabilized_warn ( k, "1.74" , STABILIZED_CREDENTIAL_PROCESS ) ,
11101112 "lints" => stabilized_warn ( k, "1.74" , STABILIZED_LINTS ) ,
11111113 "registry-auth" => stabilized_warn ( k, "1.74" , STABILIZED_REGISTRY_AUTH ) ,
1114+ "check-cfg" => stabilized_warn ( k, "1.80" , STABILIZED_CHECK_CFG ) ,
11121115
11131116 // Unstable features
11141117 // Sorted alphabetically:
@@ -1122,9 +1125,6 @@ impl CliUnstable {
11221125 }
11231126 "build-std-features" => self . build_std_features = Some ( parse_features ( v) ) ,
11241127 "cargo-lints" => self . cargo_lints = parse_empty ( k, v) ?,
1125- "check-cfg" => {
1126- self . check_cfg = parse_empty ( k, v) ?;
1127- }
11281128 "codegen-backend" => self . codegen_backend = parse_empty ( k, v) ?,
11291129 "config-include" => self . config_include = parse_empty ( k, v) ?,
11301130 "direct-minimal-versions" => self . direct_minimal_versions = parse_empty ( k, v) ?,
0 commit comments