about summary refs log tree commit diff
path: root/src/test/rustdoc/inline_cross/impl-inline-without-trait.rs
diff options
context:
space:
mode:
authorCamelid <camelidcamel@gmail.com>2020-12-11 19:52:51 -0800
committerCamelid <camelidcamel@gmail.com>2020-12-12 14:04:59 -0800
commit5ce3f4c16636b261a8ce9ddfbbb30896338b9e37 (patch)
tree4a1180a9dc6d4cc71023ded7ade3c256be1f19c8 /src/test/rustdoc/inline_cross/impl-inline-without-trait.rs
parent2225ee1b62ff089917434aefd9b2bf509cfa087f (diff)
downloadrust-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