Skip to content
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

Pluralize disallowed_type lint #7984

Merged
merged 3 commits into from
Nov 19, 2021
Merged

Conversation

phansch
Copy link
Member

@phansch phansch commented Nov 17, 2021

This was brought up in Zulip and is also mentioned in the lint naming
conventions. Since this is still a nursery lint, I think there shouldn't
be any problem in renaming it.

changelog: Rename nursery lint [disallowed_type] to [disallowed_types].

@rust-highfive
Copy link

r? @camsteffen

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Nov 17, 2021
@phansch phansch changed the title Disallowed type rename Pluralize disallowed_type lint Nov 17, 2021
@phansch phansch force-pushed the disallowed-type-rename branch from 82c81fb to 399c5eb Compare November 17, 2021 06:54
Copy link
Member

@flip1995 flip1995 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While we're at it, there's also disallowed_method, that does pretty much the same, which could also be pluralized.

@flip1995
Copy link
Member

r? @flip1995 (I want to get this merged by tomorrow. So assigning it to myself, so I'm to blame if it's not merged by then)

@rust-highfive rust-highfive assigned flip1995 and unassigned camsteffen Nov 17, 2021
@flip1995 flip1995 force-pushed the disallowed-type-rename branch 3 times, most recently from 3ad9ba6 to 8183ed5 Compare November 18, 2021 13:23
@flip1995
Copy link
Member

r? @xFrednet Since I updated the PR, I'll now push it forward for a third pair of eyes.

@rust-highfive rust-highfive assigned xFrednet and unassigned flip1995 Nov 18, 2021
phansch and others added 3 commits November 18, 2021 17:37
This was brought up in [Zulip] and is also mentioned in the lint naming
conventions. Since this is still a nursery lint, I think there shouldn't
be any problem in renaming it.

[Zulip]: https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/disallow_type.20vs.20disallowed-types
This way they match up with the pluralized lint name as well.
To stay consistent with the sister lint disallowed_type, also rename the
disallowed_method lint to disallowed_methods.
@flip1995 flip1995 force-pushed the disallowed-type-rename branch from 8183ed5 to 9b38fb7 Compare November 18, 2021 16:37
@xFrednet
Copy link
Member

LGTM, thanks!

@bors r+

@bors
Copy link
Contributor

bors commented Nov 19, 2021

📌 Commit 9b38fb7 has been approved by xFrednet

@bors
Copy link
Contributor

bors commented Nov 19, 2021

⌛ Testing commit 9b38fb7 with merge 38bd251...

@bors
Copy link
Contributor

bors commented Nov 19, 2021

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: xFrednet
Pushing 38bd251 to master...

@bors bors merged commit 38bd251 into rust-lang:master Nov 19, 2021
@phansch phansch deleted the disallowed-type-rename branch November 20, 2021 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants