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

Don't lint literal None from expansion #9389

Merged
merged 1 commit into from
Aug 28, 2022
Merged

Conversation

lukaslueg
Copy link
Contributor

This addresses #9288 (comment): If the literal None is from expansion, we never lint. This is correct because e.g. replacing the call to option_env! with whatever that macro expanded to at the time of linting is certainly wrong.

changelog: Don't lint [partialeq_to_none] for macro-expansions

@rust-highfive
Copy link

r? @Alexendoo

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Aug 28, 2022
@llogiq
Copy link
Contributor

llogiq commented Aug 28, 2022

That was fast!

@bors r+

@bors
Copy link
Collaborator

bors commented Aug 28, 2022

📌 Commit c542f1f has been approved by llogiq

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Aug 28, 2022

⌛ Testing commit c542f1f with merge 4e31c8c...

@llogiq
Copy link
Contributor

llogiq commented Aug 28, 2022

(sorry @Alexendoo for stealing the review work 😄)

@bors
Copy link
Collaborator

bors commented Aug 28, 2022

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

@bors bors merged commit 4e31c8c into rust-lang:master Aug 28, 2022
@lukaslueg lukaslueg deleted the penmacro branch August 28, 2022 11:15
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.

None yet

5 participants