Skip to content

Conversation

daxpedda
Copy link
Contributor

@daxpedda daxpedda commented Aug 9, 2022

This uses @Jarcho's #8694 implementation to fix missing_const_for_fn linting in proc-macros.
I'm not 100% sure what I'm doing here, any feedback is appreciated.

Previously: Jarcho#1.
Fixes #8854.

changelog: [missing_const_for_fn]: No longer lints in proc-macros

@rust-highfive
Copy link

r? @dswij

(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 9, 2022
Comment on lines 267 to 271
if visibility.is_public() {
(Pat::Str("pub"), end_pat)
} else {
(start_pat, end_pat)
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not entirely sure what is needed to be done here, do I have to cover more visibility kinds?

@daxpedda daxpedda force-pushed the missing-const-for-fn branch from fc5e699 to 8d4f2ac Compare August 9, 2022 01:42
@Jarcho
Copy link
Contributor

Jarcho commented Aug 9, 2022

r? @Jarcho
Going to take this as I've already reviewed it.

@rust-highfive rust-highfive assigned Jarcho and unassigned dswij Aug 9, 2022
@daxpedda daxpedda force-pushed the missing-const-for-fn branch from 21e0ea9 to 6f5d648 Compare August 9, 2022 02:56
@daxpedda daxpedda requested a review from Jarcho August 9, 2022 03:07
@daxpedda daxpedda requested a review from Jarcho August 9, 2022 03:30
@Jarcho
Copy link
Contributor

Jarcho commented Aug 9, 2022

Thank you. @bors r+

@bors
Copy link
Contributor

bors commented Aug 9, 2022

📌 Commit fd60581 has been approved by Jarcho

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Aug 9, 2022

⌛ Testing commit fd60581 with merge f7e2cb4...

@bors
Copy link
Contributor

bors commented Aug 9, 2022

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

@bors bors merged commit f7e2cb4 into rust-lang:master Aug 9, 2022
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.

missing_const_for_fn triggers for derives
5 participants