Skip to content

Upgrade a comment to a doc comment - #43936

Merged
bors merged 2 commits into
rust-lang:masterfrom
oli-obk:patch-6
Aug 20, 2017
Merged

Upgrade a comment to a doc comment#43936
bors merged 2 commits into
rust-lang:masterfrom
oli-obk:patch-6

Conversation

@oli-obk

@oli-obk oli-obk commented Aug 17, 2017

Copy link
Copy Markdown
Contributor

@oli-obk

oli-obk commented Aug 17, 2017

Copy link
Copy Markdown
Contributor Author

Maybe we should have a lint that forbids comments before undocumented public items and other documentable things.

@bjorn3

bjorn3 commented Aug 17, 2017

Copy link
Copy Markdown
Member

Forgot to submit one more review comment.

@bjorn3

bjorn3 commented Aug 17, 2017

Copy link
Copy Markdown
Member

Maybe we should have a lint that forbids comments before undocumented public items and other documentable things.

It should also detect enum variant followed by comment on the same line. I have seen quite a lot in older code.

@oli-obk

oli-obk commented Aug 17, 2017

Copy link
Copy Markdown
Contributor Author

Maybe this is something rustfmt could do?

@alexcrichton

Copy link
Copy Markdown
Member

@bors: r+ rollup

@bors

bors commented Aug 17, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit 9346fe9 has been approved by alexcrichton

aidanhs added a commit to aidanhs/rust that referenced this pull request Aug 18, 2017
bors added a commit that referenced this pull request Aug 18, 2017
Rollup of 4 pull requests

- Successful merges: #43919, #43936, #43950, #43978
- Failed merges:
@bors

bors commented Aug 19, 2017

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 9346fe9 with merge c84b2f43587b0ae3170d2ba68b5f88dcce5fc644...

@bors

bors commented Aug 19, 2017

Copy link
Copy Markdown
Collaborator

💔 Test failed - status-appveyor

@kennytm

kennytm commented Aug 19, 2017

Copy link
Copy Markdown
Member

@bors retry #43985

@bjorn3

bjorn3 commented Aug 19, 2017

Copy link
Copy Markdown
Member

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

@bors

bors commented Aug 19, 2017

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 9346fe9 with merge b07e730...

bors added a commit that referenced this pull request Aug 19, 2017
@bors

bors commented Aug 20, 2017

Copy link
Copy Markdown
Collaborator

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing b07e730 to master...

@bors
bors merged commit 9346fe9 into rust-lang:master Aug 20, 2017
@oli-obk
oli-obk deleted the patch-6 branch June 15, 2020 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants