1
Fork 0

Get rid of ast::StructFieldKind

This commit is contained in:
Vadim Petrochenkov 2016-04-02 16:47:53 +03:00
parent 772c600d4d
commit 7f3744f07f
10 changed files with 55 additions and 136 deletions

View file

@ -1009,7 +1009,8 @@ impl<'a> AstBuilder for ExtCtxt<'a> {
let fields: Vec<_> = tys.into_iter().map(|ty| {
Spanned { span: ty.span, node: ast::StructField_ {
ty: ty,
kind: ast::UnnamedField(ast::Visibility::Inherited),
ident: None,
vis: ast::Visibility::Inherited,
attrs: Vec::new(),
id: ast::DUMMY_NODE_ID,
}}