rust/clippy_lints
bors 3e42c35b72 Auto merge of #6981 - matthiaskrgr:6803_take_2, r=flip1995
disable upper_case_acronyms for pub items - enum edition

Fixes https://github.com/rust-lang/rust-clippy/issues/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)
2021-03-31 15:02:40 +00:00
..
src Auto merge of #6981 - matthiaskrgr:6803_take_2, r=flip1995 2021-03-31 15:02:40 +00:00
Cargo.toml Bump Clippy Version -> 0.1.53 2021-03-25 18:48:48 +01:00
README.md

This crate contains Clippy lints. For the main crate, check GitHub.