-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Lint for pub(crate)
items that are not crate visible due to the visibility of the module that contains them
#5319
Conversation
…ibility of the module that contains them Closes rust-lang#5274.
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.
LGTM overall. The lint should be enabled by default IMO though.
/// } | ||
/// ``` | ||
pub REDUNDANT_PUB_CRATE, | ||
nursery, |
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.
I think you can put it in the style
group.
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.
You have to run cargo dev update_lints
after changing the group.
You have to allow this lint in |
Thanks! @bors r+ |
📌 Commit 870b9e8 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
changelog: Add
redundant_pub_crate
lintCloses #5274.