@@ -751,7 +751,6 @@ unstable_cli_options!(
751751 build_std: Option <Vec <String >> = ( "Enable Cargo to compile the standard library itself as part of a crate graph compilation" ) ,
752752 build_std_features: Option <Vec <String >> = ( "Configure features enabled for the standard library itself when building the standard library" ) ,
753753 cargo_lints: bool = ( "Enable the `[lints.cargo]` table" ) ,
754- check_cfg: bool = ( "Enable compile-time checking of `cfg` names/values/features" ) ,
755754 codegen_backend: bool = ( "Enable the `codegen-backend` option in profiles in .cargo/config.toml file" ) ,
756755 config_include: bool = ( "Enable the `include` key in config files" ) ,
757756 direct_minimal_versions: bool = ( "Resolve minimal dependency versions instead of maximum (direct dependencies only)" ) ,
@@ -853,6 +852,9 @@ const STABILIZED_REGISTRY_AUTH: &str =
853852
854853const STABILIZED_LINTS : & str = "The `[lints]` table is now always available." ;
855854
855+ const STABILIZED_CHECK_CFG : & str =
856+ "Compile-time checking of conditional (a.k.a. `-Zcheck-cfg`) is now always enabled." ;
857+
856858fn deserialize_build_std < ' de , D > ( deserializer : D ) -> Result < Option < Vec < String > > , D :: Error >
857859where
858860 D : serde:: Deserializer < ' de > ,
@@ -1107,6 +1109,7 @@ impl CliUnstable {
11071109 "credential-process" => stabilized_warn ( k, "1.74" , STABILIZED_CREDENTIAL_PROCESS ) ,
11081110 "lints" => stabilized_warn ( k, "1.74" , STABILIZED_LINTS ) ,
11091111 "registry-auth" => stabilized_warn ( k, "1.74" , STABILIZED_REGISTRY_AUTH ) ,
1112+ "check-cfg" => stabilized_warn ( k, "1.80" , STABILIZED_CHECK_CFG ) ,
11101113
11111114 // Unstable features
11121115 // Sorted alphabetically:
@@ -1120,9 +1123,6 @@ impl CliUnstable {
11201123 }
11211124 "build-std-features" => self . build_std_features = Some ( parse_features ( v) ) ,
11221125 "cargo-lints" => self . cargo_lints = parse_empty ( k, v) ?,
1123- "check-cfg" => {
1124- self . check_cfg = parse_empty ( k, v) ?;
1125- }
11261126 "codegen-backend" => self . codegen_backend = parse_empty ( k, v) ?,
11271127 "config-include" => self . config_include = parse_empty ( k, v) ?,
11281128 "direct-minimal-versions" => self . direct_minimal_versions = parse_empty ( k, v) ?,
0 commit comments