Skip to content

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
Contributor

bors commented Aug 28, 2022

📌 Commit c542f1f has been approved by llogiq

It is now in the queue for this repository.

@bors
Copy link
Contributor

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
Contributor

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.

5 participants