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).
This commit is contained in:
Jonathan Brouwer 2026-02-07 16:04:40 +01:00 committed by GitHub
commit 972a53167c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 323 additions and 76 deletions

View file

@ -3539,6 +3539,7 @@ dependencies = [
"rustc_abi",
"rustc_ast",
"rustc_ast_pretty",
"rustc_data_structures",
"rustc_errors",
"rustc_feature",
"rustc_hir",