Skip to content

Conversation

jbclements
Copy link
Contributor

Fixes bug #2888 . Includes test cases

r? @catamorphism

bors added a commit that referenced this pull request Jun 6, 2013
@bors bors closed this Jun 6, 2013
@bors bors merged commit eff49fc into rust-lang:incoming Jun 6, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Apr 8, 2021
disable upper_case_acronyms for pub items - enum edition

Fixes rust-lang/rust-clippy#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 (rust-lang#6803)
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.

3 participants