@@ -579,6 +579,9 @@ features! {
579579
580580 /// Allows use of multiple build scripts.
581581 ( unstable, multiple_build_scripts, "" , "reference/unstable.html#multiple-build-scripts" ) ,
582+
583+ /// Allows checking target cfgs and configuring the `cargo.unexpected_cfgs` lint
584+ ( unstable, check_target_cfgs, "" , "reference/unstable.html#check-target-cfgs" ) ,
582585}
583586
584587/// Status and metadata for a single unstable feature.
@@ -825,6 +828,7 @@ unstable_cli_options!(
825828 #[ serde( deserialize_with = "deserialize_comma_separated_list" ) ]
826829 build_std_features: Option <Vec <String >> = ( "Configure features enabled for the standard library itself when building the standard library" ) ,
827830 cargo_lints: bool = ( "Enable the `[lints.cargo]` table" ) ,
831+ check_target_cfgs: bool = ( "Enable unexpected cfgs checking in `[target.'cfg(...)']` tables" ) ,
828832 checksum_freshness: bool = ( "Use a checksum to determine if output is fresh rather than filesystem mtime" ) ,
829833 codegen_backend: bool = ( "Enable the `codegen-backend` option in profiles in .cargo/config.toml file" ) ,
830834 config_include: bool = ( "Enable the `include` key in config files" ) ,
@@ -1335,6 +1339,7 @@ impl CliUnstable {
13351339 "build-std" => self . build_std = Some ( parse_list ( v) ) ,
13361340 "build-std-features" => self . build_std_features = Some ( parse_list ( v) ) ,
13371341 "cargo-lints" => self . cargo_lints = parse_empty ( k, v) ?,
1342+ "check-target-cfgs" => self . check_target_cfgs = parse_empty ( k, v) ?,
13381343 "codegen-backend" => self . codegen_backend = parse_empty ( k, v) ?,
13391344 "config-include" => self . config_include = parse_empty ( k, v) ?,
13401345 "direct-minimal-versions" => self . direct_minimal_versions = parse_empty ( k, v) ?,
0 commit comments