Skip to content

Commit 08f1020

Browse files
committed
Drop broken test asserting invalid configs error on nightly
The current behavior, with the default-false workaround in place, is not able to identify extra members of the `unstable` table, so it can't error on unexpected members. I'll add this test back in with a Deserializer refactor to clean up the extra logic added to CliUnstable.
1 parent c532c49 commit 08f1020

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

tests/testsuite/config.rs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,26 +1140,6 @@ unstable.print-im-a-teapot = true
11401140
assert_eq!(config.cli_unstable().print_im_a_teapot, false);
11411141
}
11421142

1143-
#[cargo_test]
1144-
/// Assert that atempting to set an unstable flag that doesn't exist via config
1145-
/// errors out the same as it would on the command line (nightly only)
1146-
fn unstable_invalid_flag_errors_on_nightly() {
1147-
cargo::core::enable_nightly_features();
1148-
write_config(
1149-
"\
1150-
unstable.an-invalid-flag = 'yes'
1151-
",
1152-
);
1153-
assert_error(
1154-
ConfigBuilder::new().build_err().unwrap_err(),
1155-
"\
1156-
Invalid [unstable] entry in Cargo config
1157-
1158-
Caused by:
1159-
unknown `-Z` flag specified: an-invalid-flag",
1160-
);
1161-
}
1162-
11631143
#[cargo_test]
11641144
/// Assert that atempting to set an unstable flag that doesn't exist via config
11651145
/// is ignored on stable

0 commit comments

Comments
 (0)