-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Treat comments beginning with four slashes as regular line comments #4184
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
Conversation
|
lgtm, but tests are failing? bors d+ |
|
✌️ adamrk can now approve this pull request. To approve and merge a pull request, simply reply with |
| const COMMENT_PREFIX_TO_KIND: &[(&str, CommentKind)] = { | ||
| use {CommentPlacement::*, CommentShape::*}; | ||
| &[ | ||
| ("////", CommentKind { shape: Line, doc: None }), |
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.
Is //// specifically called out in rust? If not I think the code that returns the text should be changed instead.
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.
Yeah, it explicitly says a line comment begins with either // or ////: https://doc.rust-lang.org/reference/comments.html

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.
TIL!
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.
Me too!
|
bors r+ |
|
Build succeeded: |
Addresses #4040