rust/tests/ui/check-cfg
Jonathan Brouwer 972a53167c
Rollup merge of #149960 - folkertdev:cfg-select-unreachable-lint, r=JonathanBrouwer
add `unreachable_cfg_select_predicates` lint

tracking issue: https://github.com/rust-lang/rust/issues/115585

Split out from https://github.com/rust-lang/rust/pull/149783. This lint is emitted on branches of a `cfg_select!` that are statically known to be unreachable. The lint is only emitted when the feature is enabled, so this change specifically does not need an FCP, and the lint will be stabilized alongside the feature (see https://github.com/rust-lang/rust/pull/149783#issuecomment-3648000286).
2026-02-07 16:04:40 +01:00
..
auxiliary Add Cargo revision and values to the check-cfg macro test 2024-11-19 22:48:36 +01:00
allow-at-crate-level.rs compiletest: add no-auto-check-cfg directive 2024-05-04 11:30:38 +02:00
allow-macro-cfg.rs compiletest: add no-auto-check-cfg directive 2024-05-04 11:30:38 +02:00
allow-same-level.rs Use cfg(false) in UI tests 2025-04-03 21:41:58 +00:00
allow-same-level.stderr Use cfg(false) in UI tests 2025-04-03 21:41:58 +00:00
allow-top-level.rs Use cfg(false) in UI tests 2025-04-03 21:41:58 +00:00
allow-upper-level.rs Use cfg(false) in UI tests 2025-04-03 21:41:58 +00:00
and-more-diagnostic.rs Add the avx10.1 and avx10.2 target features 2025-04-26 11:40:13 +05:30
and-more-diagnostic.stderr Add specific test for check-cfg "and X more" diagnostic 2024-12-01 20:51:52 +01:00
cargo-build-script.rs Don't suggest adding the unexpected cfgs the build-script it-self 2024-05-22 20:58:57 +02:00
cargo-build-script.stderr Update test output to include check_contracts cfg 2025-02-03 13:55:15 -08:00
cargo-feature.none.stderr Update test output to include check_contracts cfg 2025-02-03 13:55:15 -08:00
cargo-feature.rs UI tests: migrate remaining compile time error-patterns to line annotations 2025-04-13 21:48:53 +03:00
cargo-feature.some.stderr Update test output to include check_contracts cfg 2025-02-03 13:55:15 -08:00
cfg-crate-features.rs Add regression test 2025-07-15 23:28:15 +02:00
cfg-crate-features.stderr Add support for hexagon-unknown-qurt target 2025-11-16 18:30:37 -06:00
cfg-select.rs make the lint more sophisticated 2026-02-07 02:19:43 +01:00
cfg-select.stderr Add regression test 2025-11-27 23:02:01 +01:00
cfg-value-for-cfg-name-duplicate.rs compiletest: add no-auto-check-cfg directive 2024-05-04 11:30:38 +02:00
cfg-value-for-cfg-name-duplicate.stderr Update test output to include check_contracts cfg 2025-02-03 13:55:15 -08:00
cfg-value-for-cfg-name-multiple.rs compiletest: add no-auto-check-cfg directive 2024-05-04 11:30:38 +02:00
cfg-value-for-cfg-name-multiple.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
cfg-value-for-cfg-name.rs compiletest: add no-auto-check-cfg directive 2024-05-04 11:30:38 +02:00
cfg-value-for-cfg-name.stderr Filter well known names from check-cfg diagnostics 2025-01-25 12:27:33 +01:00
compact-names.rs Changes to diagnostics 2025-07-15 09:21:27 +02:00
compact-names.stderr Changes to diagnostics 2025-07-15 09:21:27 +02:00
compact-values.rs compiletest: add no-auto-check-cfg directive 2024-05-04 11:30:38 +02:00
compact-values.stderr Convert unexpected_cfg_{name,value} to struct diagnostics 2024-05-21 20:16:39 +00:00
concat-values.rs compiletest: add no-auto-check-cfg directive 2024-05-04 11:30:38 +02:00
concat-values.stderr Convert unexpected_cfg_{name,value} to struct diagnostics 2024-05-21 20:16:39 +00:00
diagnotics.cargo.stderr Trim suggestion parts to the subset that is purely additive 2025-02-14 00:44:10 -08:00
diagnotics.rs Fix quote escaping inside check-cfg value 2024-05-20 11:44:09 +02:00
diagnotics.rustc.stderr Trim suggestion parts to the subset that is purely additive 2025-02-14 00:44:10 -08:00
empty-values.rs compiletest: add no-auto-check-cfg directive 2024-05-04 11:30:38 +02:00
empty-values.stderr compiletest: add no-auto-check-cfg directive 2024-05-04 11:30:38 +02:00
exhaustive-names-values.empty_cfg.stderr Add minimal armv7a-vex-v5 support 2025-08-07 15:06:08 -07:00
exhaustive-names-values.feature.stderr Add minimal armv7a-vex-v5 support 2025-08-07 15:06:08 -07:00
exhaustive-names-values.full.stderr Add minimal armv7a-vex-v5 support 2025-08-07 15:06:08 -07:00
exhaustive-names-values.rs Make the test cfg a "userspace" check-cfg 2025-01-02 16:49:55 +01:00
exhaustive-names.rs compiletest: add no-auto-check-cfg directive 2024-05-04 11:30:38 +02:00
exhaustive-names.stderr Filter well known names from check-cfg diagnostics 2025-01-25 12:27:33 +01:00
exhaustive-values.empty_cfg.stderr Make the test cfg a "userspace" check-cfg 2025-01-02 16:49:55 +01:00
exhaustive-values.rs Make the test cfg a "userspace" check-cfg 2025-01-02 16:49:55 +01:00
exhaustive-values.without_names.stderr Make the test cfg a "userspace" check-cfg 2025-01-02 16:49:55 +01:00
false.rs Suggest cfg(false) instead of cfg(FALSE) 2025-12-11 18:23:04 +00:00
false.stderr Suggest cfg(false) instead of cfg(FALSE) 2025-12-11 18:23:04 +00:00
hrtb-crash.rs deduplicate the rest of AST walker functions 2025-06-09 21:59:20 +08:00
hrtb-crash.stderr deduplicate the rest of AST walker functions 2025-06-09 21:59:20 +08:00
invalid-arguments.any_values.stderr Improve check-cfg CLI errors with more structured diagnostics 2024-05-06 07:44:41 +02:00
invalid-arguments.anything_else.stderr Improve check-cfg CLI errors with more structured diagnostics 2024-05-06 07:44:41 +02:00
invalid-arguments.boolean_after_values.stderr Allow boolean literals in check-cfg 2025-04-03 09:54:23 +00:00
invalid-arguments.cfg_none.stderr Improve check-cfg CLI errors with more structured diagnostics 2024-05-06 07:44:41 +02:00
invalid-arguments.giberich.stderr Improve check-cfg CLI errors with more structured diagnostics 2024-05-06 07:44:41 +02:00
invalid-arguments.ident_in_values_1.stderr Improve check-cfg CLI errors with more structured diagnostics 2024-05-06 07:44:41 +02:00
invalid-arguments.ident_in_values_2.stderr Improve check-cfg CLI errors with more structured diagnostics 2024-05-06 07:44:41 +02:00
invalid-arguments.mixed_any.stderr Improve check-cfg CLI errors with more structured diagnostics 2024-05-06 07:44:41 +02:00
invalid-arguments.mixed_values_any.stderr Improve check-cfg CLI errors with more structured diagnostics 2024-05-06 07:44:41 +02:00
invalid-arguments.multiple_any.stderr Improve check-cfg CLI errors with more structured diagnostics 2024-05-06 07:44:41 +02:00
invalid-arguments.multiple_values.stderr Improve check-cfg CLI errors with more structured diagnostics 2024-05-06 07:44:41 +02:00
invalid-arguments.multiple_values_any.stderr Improve check-cfg CLI errors with more structured diagnostics 2024-05-06 07:44:41 +02:00
invalid-arguments.none_not_empty.stderr Improve check-cfg CLI errors with more structured diagnostics 2024-05-06 07:44:41 +02:00
invalid-arguments.not_empty_any.stderr Improve check-cfg CLI errors with more structured diagnostics 2024-05-06 07:44:41 +02:00
invalid-arguments.not_empty_values_any.stderr Improve check-cfg CLI errors with more structured diagnostics 2024-05-06 07:44:41 +02:00
invalid-arguments.rs Rollup merge of #138767 - clubby789:check-cfg-bool, r=Urgau 2025-04-03 21:18:30 +02:00
invalid-arguments.string_for_name_1.stderr Improve check-cfg CLI errors with more structured diagnostics 2024-05-06 07:44:41 +02:00
invalid-arguments.string_for_name_2.stderr Improve check-cfg CLI errors with more structured diagnostics 2024-05-06 07:44:41 +02:00
invalid-arguments.unknown_meta_item_1.stderr Improve check-cfg CLI errors with more structured diagnostics 2024-05-06 07:44:41 +02:00
invalid-arguments.unknown_meta_item_2.stderr Improve check-cfg CLI errors with more structured diagnostics 2024-05-06 07:44:41 +02:00
invalid-arguments.unknown_meta_item_3.stderr Improve check-cfg CLI errors with more structured diagnostics 2024-05-06 07:44:41 +02:00
invalid-arguments.unsafe_attr.stderr Reject leading unsafe in cfg!(...) and --check-cfg. 2024-09-30 12:15:08 +02:00
invalid-arguments.unterminated.stderr Improve check-cfg CLI errors with more structured diagnostics 2024-05-06 07:44:41 +02:00
invalid-arguments.values_any_before_ident.stderr Improve check-cfg CLI errors with more structured diagnostics 2024-05-06 07:44:41 +02:00
invalid-arguments.values_any_missing_values.stderr Improve check-cfg CLI errors with more structured diagnostics 2024-05-06 07:44:41 +02:00
mix.rs Make the test cfg a "userspace" check-cfg 2025-01-02 16:49:55 +01:00
mix.stderr Update test output to include check_contracts cfg 2025-02-03 13:55:15 -08:00
my-awesome-platform.json rustc_target: allow unenumerated architectures 2025-11-04 21:28:28 -05:00
nested-cfg.rs Add regression test for nested cfgs 2025-12-06 10:38:15 +01:00
nested-cfg.stderr Add regression test for nested cfgs 2025-12-06 10:38:15 +01:00
no-expected-values.empty.stderr Make the test cfg a "userspace" check-cfg 2025-01-02 16:49:55 +01:00
no-expected-values.mixed.stderr Make the test cfg a "userspace" check-cfg 2025-01-02 16:49:55 +01:00
no-expected-values.rs compiletest: add no-auto-check-cfg directive 2024-05-04 11:30:38 +02:00
no-expected-values.simple.stderr Make the test cfg a "userspace" check-cfg 2025-01-02 16:49:55 +01:00
order-independant.rs compiletest: add no-auto-check-cfg directive 2024-05-04 11:30:38 +02:00
order-independant.values_after.stderr compiletest: add no-auto-check-cfg directive 2024-05-04 11:30:38 +02:00
order-independant.values_before.stderr compiletest: add no-auto-check-cfg directive 2024-05-04 11:30:38 +02:00
raw-keywords.edition2015.stderr replace //@ compile-flags: --edition with //@ edition 2025-04-10 09:56:37 +02:00
raw-keywords.edition2021.stderr replace //@ compile-flags: --edition with //@ edition 2025-04-10 09:56:37 +02:00
raw-keywords.rs Emit error when using path-segment keyword as cfg pred 2025-11-21 18:48:04 +08:00
report-in-external-macros.cargo.stderr Change the cfg to a dash 2025-09-21 13:12:20 -04:00
report-in-external-macros.rs Add Cargo revision and values to the check-cfg macro test 2024-11-19 22:48:36 +01:00
report-in-external-macros.rustc.stderr Change the cfg to a dash 2025-09-21 13:12:20 -04:00
stmt-no-ice.rs compiletest: add no-auto-check-cfg directive 2024-05-04 11:30:38 +02:00
stmt-no-ice.stderr Filter well known names from check-cfg diagnostics 2025-01-25 12:27:33 +01:00
target_feature.rs Remove the -test suffix from normalize directives 2024-12-27 19:58:16 +11:00
target_feature.stderr Require sram target feature on AVR 2026-02-06 09:29:24 +09:00
unexpected-cfg-name.rs Make the test cfg a "userspace" check-cfg 2025-01-02 16:49:55 +01:00
unexpected-cfg-name.stderr Filter well known names from check-cfg diagnostics 2025-01-25 12:27:33 +01:00
unexpected-cfg-value.rs compiletest: add no-auto-check-cfg directive 2024-05-04 11:30:38 +02:00
unexpected-cfg-value.stderr Convert unexpected_cfg_{name,value} to struct diagnostics 2024-05-21 20:16:39 +00:00
unknown-values.rs compiletest: add no-auto-check-cfg directive 2024-05-04 11:30:38 +02:00
values-none.concat_1.stderr Fix test problems discovered by the revision check 2024-05-09 14:47:09 +10:00
values-none.concat_2.stderr Fix test problems discovered by the revision check 2024-05-09 14:47:09 +10:00
values-none.explicit.stderr compiletest: add no-auto-check-cfg directive 2024-05-04 11:30:38 +02:00
values-none.implicit.stderr compiletest: add no-auto-check-cfg directive 2024-05-04 11:30:38 +02:00
values-none.rs Fix test problems discovered by the revision check 2024-05-09 14:47:09 +10:00
values-none.simple.stderr Fix test problems discovered by the revision check 2024-05-09 14:47:09 +10:00
values-target-json.rs target: fix destabilising target-spec-json 2026-01-26 12:08:04 +00:00
well-known-names.rs Filter well known names from check-cfg diagnostics 2025-01-25 12:27:33 +01:00
well-known-names.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
well-known-values.rs Make the test cfg a "userspace" check-cfg 2025-01-02 16:49:55 +01:00
well-known-values.stderr Add support for hexagon-unknown-qurt target 2025-11-16 18:30:37 -06:00
wrong-version-syntax.fixed Suggest correct version("..") predicate syntax in check-cfg 2025-05-23 18:14:49 +02:00
wrong-version-syntax.rs Suggest correct version("..") predicate syntax in check-cfg 2025-05-23 18:14:49 +02:00
wrong-version-syntax.stderr Suggest correct version("..") predicate syntax in check-cfg 2025-05-23 18:14:49 +02:00