Omit pub
for inlined variant-struct fields
This commit is contained in:
parent
0215681744
commit
00a32b2884
3 changed files with 37 additions and 1 deletions
|
@ -1885,7 +1885,7 @@ impl<'tcx> Clean<Item> for ty::VariantDefData<'tcx, 'static> {
|
|||
source: Span::empty(),
|
||||
name: Some(field.name.clean(cx)),
|
||||
attrs: Vec::new(),
|
||||
visibility: Some(hir::Public),
|
||||
visibility: Some(field.vis),
|
||||
// FIXME: this is not accurate, we need an id for
|
||||
// the specific field but we're using the id
|
||||
// for the whole variant. Thus we read the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue