about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-03-31 15:02:40 +0000
committerbors <bors@rust-lang.org>2021-03-31 15:02:40 +0000
commit3e42c35b72d4b164cdbce147e2629353504282a5 (patch)
treea271030c32f0f3ef6b00cf3fe81bb07f827b617f /src/test/codegen/src-hash-algorithm
parent2e33bf634780ca3e36d88e14b4aa7352b2d8e2dd (diff)
parentca7e95501c13f386956728bb66ec099a0d89e8e5 (diff)
downloadrust-3e42c35b72d4b164cdbce147e2629353504282a5.tar.gz
rust-3e42c35b72d4b164cdbce147e2629353504282a5.zip
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... :sweat_smile:  )

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)
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions