Omit pub for inlined variant-struct fields

This commit is contained in:
mitaa 2016-03-22 06:59:43 +01:00
parent 0215681744
commit 00a32b2884
3 changed files with 37 additions and 1 deletions

View file

@ -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