mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
auto merge of #19349 : tomjakubowski/rust/rustdoc-struct-variant-vis, r=sfackler
Teach rustdoc that struct variant fields have inherited visibility. Fix #19048
This commit is contained in:
commit
3dd5443ebd
@ -202,6 +202,10 @@ impl<'a> fold::DocFolder for Stripper<'a> {
|
||||
// implementations of traits are always public.
|
||||
clean::ImplItem(ref imp) if imp.trait_.is_some() => true,
|
||||
|
||||
// Struct variant fields have inherited visibility
|
||||
clean::VariantItem(clean::Variant {
|
||||
kind: clean::StructVariant(..)
|
||||
}) => true,
|
||||
_ => false,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user