-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Upgrade a comment to a doc comment #43936
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Maybe we should have a lint that forbids comments before undocumented public items and other documentable things. |
Forgot to submit one more review comment. |
It should also detect enum variant followed by comment on the same line. I have seen quite a lot in older code. |
Maybe this is something rustfmt could do? |
@bors: r+ rollup |
📌 Commit 9346fe9 has been approved by |
Upgrade a comment to a doc comment r? @alexcrichton cc @bjorn3
⌛ Testing commit 9346fe9 with merge c84b2f43587b0ae3170d2ba68b5f88dcce5fc644... |
💔 Test failed - status-appveyor |
Was working on some more comment to doc comment changes, but got tired as I already have ~500 changes and I have about 100 to go according to my code 😢 https://github.com/bjorn3/rust/tree/tidy_comment_check |
Upgrade a comment to a doc comment r? @alexcrichton cc @bjorn3
☀️ Test successful - status-appveyor, status-travis |
r? @alexcrichton
cc @bjorn3