-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 doc comments on private items #786
Comments
Nah. I like to use that trick to generate private doc. I think this is something |
OK, but that's something a well-seasoned dev would attempt, and clippy also tries to help newbies (and forgetting |
Conversely, I'd like a lint to warn when a private function is not documented. Since rustdoc's behavior around documenting private items has changed greatly (e.g. binaries include them by default, you can use |
@shepmaster this lint already exists: |
Ah, thanks! I only looked for an official rustdoc lint. |
See also #5736 |
I agree this should be closed. |
Since we recently started targeting comments, recently someone asked why their doc comments don't show up for a private function.
We could lint and suggest either making the function public (if intended) or make the comment a normal line comment.
I'm not sure if this should
warn
, though.The text was updated successfully, but these errors were encountered: