-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Use check_proc_macro
for missing_const_for_fn
#9308
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
Conversation
r? @dswij (rust-highfive has picked a reviewer for you, use r? to override) |
clippy_utils/src/check_proc_macro.rs
Outdated
if visibility.is_public() { | ||
(Pat::Str("pub"), end_pat) | ||
} else { | ||
(start_pat, end_pat) | ||
} |
There was a problem hiding this comment.
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?
fc5e699
to
8d4f2ac
Compare
r? @Jarcho |
21e0ea9
to
6f5d648
Compare
Thank you. @bors r+ |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
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