-
Notifications
You must be signed in to change notification settings - Fork 13k
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
RFC: Statically enforce that only one type of doc comment is present on any given item #6781
Comments
Agreed. For what it's worth my favorite comment form for Rust code is: #[doc="""
My documentation is great. :)
"""]
mod m {
} |
See also #6782, in the case where we decide to have more than one type of doc comment form. |
I tend to agree, but note that right now multiple lines of |
See also PR #6757. |
I agree that this should be deny-linted by default. |
Triage: no change. |
This needs to go through the new RFC process. https://github.com/rust-lang/rfcs/ |
…krgr lintcheck fix build (forgot to pass function parameter) and runtime (… …don't check metadata of directory if it does not exist) Accidentally broke lintcheck in my previous commit. changelog: None
This is an abomination, yet totally legal:
Putting aside the fact that we just have waay too many forms of doc comments, this should be a compile-time error. I can think of no scenario where you'd want to split an item's documentation up among several comments, let alone several different types of comments.
The text was updated successfully, but these errors were encountered: