Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow boolean literals in check-cfg #138767

Merged
merged 1 commit into from
Apr 4, 2025
Merged

Conversation

clubby789
Copy link
Contributor

#138632 (comment)
This makes it consistent with --cfg

We could alternatively add a forward-compatible lint against --cfg true/false
r? @Urgau

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Mar 21, 2025
@rust-log-analyzer

This comment has been minimized.

@Urgau
Copy link
Member

Urgau commented Mar 22, 2025

Procedurally, this change impacts a stable option, the change is quite limited (and could even be considered a consistency bug-fix with --cfg), so @davidtwco and I think that an MCP (without FCP) would be enough to insta-stabilize this change.

@clubby789 could you open a MCP (Major Change Proposal) against the rust-lang/compiler-team repo explaining the change and its motivation so this PR can move forward.

@rustbot label +S-waiting-on-MCP -S-waiting-on-review

@rustbot rustbot added S-waiting-on-MCP Status: PR has a compiler MCP and is waiting for the compiler MCP to complete. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 22, 2025
@clubby789
Copy link
Contributor Author

Opened an MCP: rust-lang/compiler-team#854

@Urgau
Copy link
Member

Urgau commented Apr 3, 2025

The MCP has been accepted. Let's merge it.

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Apr 3, 2025

📌 Commit 3df2acd has been approved by Urgau

It is now in the queue for this repository.

@bors bors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Apr 3, 2025
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 3, 2025
…iaskrgr

Rollup of 9 pull requests

Successful merges:

 - rust-lang#138017 (Tighten up assignment operator representations.)
 - rust-lang#138462 (Dedup `&mut *` reborrow suggestion in loops)
 - rust-lang#138610 (impl !PartialOrd for HirId)
 - rust-lang#138767 (Allow boolean literals in `check-cfg`)
 - rust-lang#139068 (io: Avoid marking some bytes as uninit)
 - rust-lang#139255 (Remove unused variables generated in merged doctests)
 - rust-lang#139270 (Add a mailmap entry for myself)
 - rust-lang#139303 (Put Noratrieb on vacation)
 - rust-lang#139312 (add Marco Ieni to mailmap)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 9d733ec into rust-lang:master Apr 4, 2025
6 checks passed
@rustbot rustbot added this to the 1.88.0 milestone Apr 4, 2025
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Apr 4, 2025
Rollup merge of rust-lang#138767 - clubby789:check-cfg-bool, r=Urgau

Allow boolean literals in `check-cfg`

rust-lang#138632 (comment)
This makes it consistent with `--cfg`

We could alternatively add a forward-compatible lint against `--cfg true/false`
r? `@Urgau`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. S-waiting-on-MCP Status: PR has a compiler MCP and is waiting for the compiler MCP to complete. 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.

6 participants