-
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
Move semicolon_if_nothing_returned
lint to pedantic
#7148
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @phansch (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
semicolon_if_nothing_returned
lint to style
What's the motivation in moving this to |
According to the formatting guide, this lint is enforcing the preferred style, so I think it should be in that category, rather than
https://github.com/rust-dev-tools/fmt-rfcs/blob/master/guide/statements.md |
Since the rust style guidelines recommend that, I guess we could move it to style. But at the same time I feel like this is really pedantic for a warn-by-default lint. So if we move this, we should only move it to |
That style guide is in fmt-rfcs which seems to be in a sort of limbo-state, not really an accepted official style guide. Also those guidelines are mainly intended for rustfmt - rules that can be automatically enforced by a formatter. This is a bit of a unique rule since it is "type-aware" which is why Clippy adopted it. So the weird RFC status combined with the "pickiness" makes it fit into pedantic IMO. Would this be a good time to consider a rename or is it too late? The current name reads badly as |
ping from triage @mbartlett21. Is there anything you still want to discuss? |
@giraffate |
semicolon_if_nothing_returned
lint to style
semicolon_if_nothing_returned
lint to pedantic
☔ The latest upstream changes (presumably #7253) made this pull request unmergeable. Please resolve the merge conflicts. |
Now I realise that I should probably not be doing this on my master branch, since I can't rebase very well. I will redo in another branch and make another pr and link it. EDIT: See #7268 |
Move `semicolon_if_nothing_returned` to `pedantic` This moves the `semicolon_if_nothing_returned` lint to `pedantic` category. I had done #7148, but on the master branch, and Github doesn't seem to let me change that, so here's another PR changelog: Move [`semicolon_if_nothing_returned`] lint into `pedantic` category.
Move `semicolon_if_nothing_returned` to `pedantic` This moves the `semicolon_if_nothing_returned` lint to `pedantic` category. I had done #7148, but on the master branch, and Github doesn't seem to let me change that, so here's another PR changelog: Move [`semicolon_if_nothing_returned`] lint into `pedantic` category.
Move `semicolon_if_nothing_returned` to `pedantic` This moves the `semicolon_if_nothing_returned` lint to `pedantic` category. I had done #7148, but on the master branch, and Github doesn't seem to let me change that, so here's another PR changelog: Move [`semicolon_if_nothing_returned`] lint into `pedantic` category.
This moves the
semicolon_if_nothing_returned
lint topedantic
category.changelog: Move [
semicolon_if_nothing_returned
] lint intopedantic
category.