Skip to content

Ignore #[cfg]'d out code in needless_else #10822

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

Merged
merged 1 commit into from
May 27, 2023

Conversation

Alexendoo
Copy link
Member

changelog: none (same release as #10810)

#[cfg] making things fun once more

This lead me to think about macro calls that expand to nothing as well, but apparently they produce an empty stmt in the AST so are already handled, added a test for that

r? @llogiq

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label May 24, 2023
@Alexendoo Alexendoo force-pushed the needless-else-cfg branch from 5c9185e to 021b739 Compare May 24, 2023 21:45
@llogiq
Copy link
Contributor

llogiq commented May 27, 2023

Thank you!

@bors r+

@bors
Copy link
Contributor

bors commented May 27, 2023

📌 Commit 021b739 has been approved by llogiq

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented May 27, 2023

⌛ Testing commit 021b739 with merge c9ddcf0...

@bors
Copy link
Contributor

bors commented May 27, 2023

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: llogiq
Pushing c9ddcf0 to master...

@bors bors merged commit c9ddcf0 into rust-lang:master May 27, 2023
@Alexendoo Alexendoo deleted the needless-else-cfg branch May 27, 2023 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants