Skip to content

Remove uses of cfg({any()/all()})#149791

Merged
bors merged 1 commit intorust-lang:mainfrom
clubby789:cfg-bool-lints
Dec 12, 2025
Merged

Remove uses of cfg({any()/all()})#149791
bors merged 1 commit intorust-lang:mainfrom
clubby789:cfg-bool-lints

Conversation

@clubby789
Copy link
Contributor

@clubby789 clubby789 commented Dec 8, 2025

This implements the followup warning suggested in rust-lang/rfcs#3695
Lint against an empty cfg(any/all), suggest the boolean literal equivalents.
#149791 (comment)

Tracking issue: #131204

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-attributes Area: Attributes (`#[…]`, `#![…]`) I-lang-radar Items that are on lang's radar and will need eventual work or consideration. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.