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

disable upper_case_acronyms for pub items - enum edition #6981

Merged
merged 2 commits into from
Mar 31, 2021

Conversation

matthiaskrgr
Copy link
Member

@matthiaskrgr matthiaskrgr commented Mar 27, 2021

Fixes #6803 (again... 😅 )

My previous fix did not work for enums because enum variants were checked separately in the check_variant function but it looks like we can't use that because we can't tell if the enum the variants belong to is declared as public or not (it always said Inherited for me)

I went and special-cased enums and iterated over all the variants "manually", but only, if the enums is not public.


changelog: fix upper_case_acronyms still firing on public enums (#6803)

@rust-highfive
Copy link

r? @flip1995

(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 Mar 27, 2021
@matthiaskrgr matthiaskrgr changed the title disable upper_case_acronyms - enum edition disable upper_case_acronyms for pub items - enum edition Mar 27, 2021
@flip1995
Copy link
Member

@bors r+

Thanks!

@bors
Copy link
Collaborator

bors commented Mar 31, 2021

📌 Commit ca7e955 has been approved by flip1995

@bors
Copy link
Collaborator

bors commented Mar 31, 2021

⌛ Testing commit ca7e955 with merge 3e42c35...

@bors
Copy link
Collaborator

bors commented Mar 31, 2021

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: flip1995
Pushing 3e42c35 to master...

@bors bors merged commit 3e42c35 into rust-lang:master Mar 31, 2021
@bors
Copy link
Collaborator

bors commented Mar 31, 2021

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: flip1995
Pushing 3e42c35 to master...

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.

upper_case_acronyms warns on public items
4 participants