Visit visibilities in the ast visitor's walk_* functions

This commit is contained in:
Jeffrey Seyfried
2016-04-10 23:10:46 +00:00
parent 4b189e65c8
commit 2b2e4dda21
2 changed files with 7 additions and 4 deletions

View File

@@ -850,7 +850,7 @@ pub fn noop_fold_struct_field<T: Folder>(f: StructField, fld: &mut T) -> StructF
span: fld.new_span(f.span),
id: fld.new_id(f.id),
ident: f.ident.map(|ident| fld.fold_ident(ident)),
vis: f.vis,
vis: fld.fold_vis(f.vis),
ty: fld.fold_ty(f.ty),
attrs: fold_attrs(f.attrs, fld),
}