diff options
| author | Camelid <camelidcamel@gmail.com> | 2020-12-11 19:52:51 -0800 |
|---|---|---|
| committer | Camelid <camelidcamel@gmail.com> | 2020-12-12 14:04:59 -0800 |
| commit | 5ce3f4c16636b261a8ce9ddfbbb30896338b9e37 (patch) | |
| tree | 4a1180a9dc6d4cc71023ded7ade3c256be1f19c8 /src/test/rustdoc/inline_cross/impl-inline-without-trait.rs | |
| parent | 2225ee1b62ff089917434aefd9b2bf509cfa087f (diff) | |
| download | rust-5ce3f4c16636b261a8ce9ddfbbb30896338b9e37.tar.gz rust-5ce3f4c16636b261a8ce9ddfbbb30896338b9e37.zip | |
Resolve enum field visibility correctly
Previously, this code treated enum fields' visibility as if they were struct fields. However, that's not correct because the visibility of a struct field with `ast::VisibilityKind::Inherited` is private to the module it's defined in, whereas the visibility of an *enum* field with `ast::VisibilityKind::Inherited` is the visibility of the enum it belongs to.
Diffstat (limited to 'src/test/rustdoc/inline_cross/impl-inline-without-trait.rs')
0 files changed, 0 insertions, 0 deletions
