]> git.lizzy.rs Git - rust.git/commitdiff
Merge #6189
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Fri, 9 Oct 2020 18:47:52 +0000 (18:47 +0000)
committerGitHub <noreply@github.com>
Fri, 9 Oct 2020 18:47:52 +0000 (18:47 +0000)
6189: adt: correctly inherit field visibility from enum r=jonas-schievink a=jonas-schievink

Previously, "find all references" on a variant field wouldn't find any
references outside the defining module. This is because variant fields
were incorrectly assumed to be private, like struct fields without
explicit visibility, but they actually inherit the enum's visibility.

bors r+ :robot:

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>

Trivial merge