rust/tests/ui/check-cfg
Nicholas Nethercote 22b534de4f Rearrange default_configuration and CheckCfg::fill_well_known.
There are comments saying these two functions should be kept in sync,
but they have very different structures, process symbols in different
orders, and there are some inconsistencies.

This commit reorders them so they're both mostly processing symbols in
alphabetical order, which makes cross-checking them a lot easier. The
commit also adds some macros to factor out repetitive code patterns.
Plus it adds `sanitizer_cfi_normalize_{integers,pointers}` to
`fill_well_known`, which were missing.

The commit also moves the handling of `sym::test` out of
`build_configuration` into `default_configuration`, where all the other
symbols are handled.
2023-12-11 10:04:47 +11:00
..
allow-at-crate-level.rs MCP636: Adapt check-cfg tests to the new syntax 2023-10-13 13:51:03 +02:00
allow-macro-cfg.rs MCP636: Adapt check-cfg tests to the new syntax 2023-10-13 13:51:03 +02:00
allow-same-level.rs MCP636: Adapt check-cfg tests to the new syntax 2023-10-13 13:51:03 +02:00
allow-same-level.stderr Rearrange default_configuration and CheckCfg::fill_well_known. 2023-12-11 10:04:47 +11:00
allow-top-level.rs MCP636: Adapt check-cfg tests to the new syntax 2023-10-13 13:51:03 +02:00
allow-upper-level.rs MCP636: Adapt check-cfg tests to the new syntax 2023-10-13 13:51:03 +02:00
cargo-feature.rs Improve diagnostic for unexpected feature config name from Cargo 2023-11-21 19:06:58 +01:00
cargo-feature.stderr Improve diagnostic for unexpected feature config name from Cargo 2023-11-21 19:06:58 +01:00
compact-names.rs MCP636: Adapt check-cfg tests to the new syntax 2023-10-13 13:51:03 +02:00
compact-names.stderr Rearrange default_configuration and CheckCfg::fill_well_known. 2023-12-11 10:04:47 +11:00
compact-values.rs Avoid target_os and target_arch in some check-cfg tests 2023-12-09 11:59:46 +01:00
compact-values.stderr Avoid target_os and target_arch in some check-cfg tests 2023-12-09 11:59:46 +01:00
concat-values.rs MCP636: Adapt check-cfg tests to the new syntax 2023-10-13 13:51:03 +02:00
concat-values.stderr MCP636: Adapt check-cfg tests to the new syntax 2023-10-13 13:51:03 +02:00
diagnotics.rs MCP636: Adapt check-cfg tests to the new syntax 2023-10-13 13:51:03 +02:00
diagnotics.stderr check-cfg: mention the unexpected name and value in the primary message 2023-10-12 18:39:04 +02:00
exhaustive-names-values.empty_cfg.stderr Rearrange default_configuration and CheckCfg::fill_well_known. 2023-12-11 10:04:47 +11:00
exhaustive-names-values.empty_names_values.stderr Rearrange default_configuration and CheckCfg::fill_well_known. 2023-12-11 10:04:47 +11:00
exhaustive-names-values.feature.stderr Rearrange default_configuration and CheckCfg::fill_well_known. 2023-12-11 10:04:47 +11:00
exhaustive-names-values.full.stderr Rearrange default_configuration and CheckCfg::fill_well_known. 2023-12-11 10:04:47 +11:00
exhaustive-names-values.rs Remove deprecated --check-cfg names() and values() syntax 2023-12-05 13:25:11 +01:00
exhaustive-names.exhaustive_names.stderr Rearrange default_configuration and CheckCfg::fill_well_known. 2023-12-11 10:04:47 +11:00
exhaustive-names.rs Remove deprecated --check-cfg names() and values() syntax 2023-12-05 13:25:11 +01:00
exhaustive-names.stderr Rearrange default_configuration and CheckCfg::fill_well_known. 2023-12-11 10:04:47 +11:00
exhaustive-values.empty_cfg.stderr Remove deprecated --check-cfg names() and values() syntax 2023-12-05 13:25:11 +01:00
exhaustive-values.rs Remove deprecated --check-cfg names() and values() syntax 2023-12-05 13:25:11 +01:00
exhaustive-values.without_names.stderr Remove deprecated --check-cfg names() and values() syntax 2023-12-05 13:25:11 +01:00
invalid-arguments.any_values.stderr Better guard against wrong input with check-cfg any() 2023-10-27 12:02:54 +02:00
invalid-arguments.anything_else.stderr MCP636: Adapt check-cfg tests to the new syntax 2023-10-13 13:51:03 +02:00
invalid-arguments.giberich.stderr MCP636: Adapt check-cfg tests to the new syntax 2023-10-13 13:51:03 +02:00
invalid-arguments.ident_in_values_1.stderr MCP636: Adapt check-cfg tests to the new syntax 2023-10-13 13:51:03 +02:00
invalid-arguments.ident_in_values_2.stderr MCP636: Adapt check-cfg tests to the new syntax 2023-10-13 13:51:03 +02:00
invalid-arguments.mixed_any.stderr MCP636: Adapt check-cfg tests to the new syntax 2023-10-13 13:51:03 +02:00
invalid-arguments.mixed_values_any.stderr MCP636: Adapt check-cfg tests to the new syntax 2023-10-13 13:51:03 +02:00
invalid-arguments.multiple_any.stderr MCP636: Adapt check-cfg tests to the new syntax 2023-10-13 13:51:03 +02:00
invalid-arguments.multiple_values_any.stderr MCP636: Adapt check-cfg tests to the new syntax 2023-10-13 13:51:03 +02:00
invalid-arguments.multiple_values.stderr MCP636: Adapt check-cfg tests to the new syntax 2023-10-13 13:51:03 +02:00
invalid-arguments.not_empty_any.stderr MCP636: Adapt check-cfg tests to the new syntax 2023-10-13 13:51:03 +02:00
invalid-arguments.not_empty_values_any.stderr MCP636: Adapt check-cfg tests to the new syntax 2023-10-13 13:51:03 +02:00
invalid-arguments.rs Remove deprecated --check-cfg names() and values() syntax 2023-12-05 13:25:11 +01:00
invalid-arguments.string_for_name_1.stderr MCP636: Adapt check-cfg tests to the new syntax 2023-10-13 13:51:03 +02:00
invalid-arguments.string_for_name_2.stderr MCP636: Adapt check-cfg tests to the new syntax 2023-10-13 13:51:03 +02:00
invalid-arguments.unknown_meta_item_1.stderr MCP636: Adapt check-cfg tests to the new syntax 2023-10-13 13:51:03 +02:00
invalid-arguments.unknown_meta_item_2.stderr MCP636: Adapt check-cfg tests to the new syntax 2023-10-13 13:51:03 +02:00
invalid-arguments.unknown_meta_item_3.stderr MCP636: Adapt check-cfg tests to the new syntax 2023-10-13 13:51:03 +02:00
invalid-arguments.unterminated.stderr Better guard against wrong input with check-cfg any() 2023-10-27 12:02:54 +02:00
invalid-arguments.values_any_before_ident.stderr MCP636: Adapt check-cfg tests to the new syntax 2023-10-13 13:51:03 +02:00
invalid-arguments.values_any_missing_values.stderr MCP636: Adapt check-cfg tests to the new syntax 2023-10-13 13:51:03 +02:00
mix.cfg.stderr Rearrange default_configuration and CheckCfg::fill_well_known. 2023-12-11 10:04:47 +11:00
mix.rs Remove deprecated --check-cfg names() and values() syntax 2023-12-05 13:25:11 +01:00
mix.stderr Rearrange default_configuration and CheckCfg::fill_well_known. 2023-12-11 10:04:47 +11:00
my-awesome-platform.json Honor current target when checking conditional compilation values 2023-03-09 21:55:00 +01:00
no-expected-values.empty.stderr Remove deprecated --check-cfg names() and values() syntax 2023-12-05 13:25:11 +01:00
no-expected-values.mixed.stderr Remove deprecated --check-cfg names() and values() syntax 2023-12-05 13:25:11 +01:00
no-expected-values.rs Remove deprecated --check-cfg names() and values() syntax 2023-12-05 13:25:11 +01:00
no-expected-values.simple.stderr Remove deprecated --check-cfg names() and values() syntax 2023-12-05 13:25:11 +01:00
order-independant.rs Remove deprecated --check-cfg names() and values() syntax 2023-12-05 13:25:11 +01:00
order-independant.values_after.stderr Remove deprecated --check-cfg names() and values() syntax 2023-12-05 13:25:11 +01:00
order-independant.values_before.stderr Remove deprecated --check-cfg names() and values() syntax 2023-12-05 13:25:11 +01:00
stmt-no-ice.rs MCP636: Adapt check-cfg tests to the new syntax 2023-10-13 13:51:03 +02:00
stmt-no-ice.stderr Rearrange default_configuration and CheckCfg::fill_well_known. 2023-12-11 10:04:47 +11:00
unexpected-cfg-name.rs Remove deprecated --check-cfg names() and values() syntax 2023-12-05 13:25:11 +01:00
unexpected-cfg-name.stderr Remove deprecated --check-cfg names() and values() syntax 2023-12-05 13:25:11 +01:00
unexpected-cfg-value.cfg.stderr Update --check-cfg tests that had old --cfg warning 2023-11-18 12:21:58 +01:00
unexpected-cfg-value.rs Remove deprecated --check-cfg names() and values() syntax 2023-12-05 13:25:11 +01:00
unexpected-cfg-value.stderr Remove deprecated --check-cfg names() and values() syntax 2023-12-05 13:25:11 +01:00
unknown-values.rs MCP636: Adapt check-cfg tests to the new syntax 2023-10-13 13:51:03 +02:00
values-target-json.rs Avoid target_os and target_arch in some check-cfg tests 2023-12-09 11:59:46 +01:00
well-known-names.rs Remove feature from the list of well known check-cfg name 2023-11-21 19:06:58 +01:00
well-known-names.stderr Rearrange default_configuration and CheckCfg::fill_well_known. 2023-12-11 10:04:47 +11:00
well-known-values.rs Strengthen well known check-cfg names and values test 2023-12-09 11:59:46 +01:00
well-known-values.stderr Strengthen well known check-cfg names and values test 2023-12-09 11:59:46 +01:00