1
Fork 0

Move MetaItemKind's Name to a field of MetaItem.

This commit is contained in:
Jeffrey Seyfried 2016-11-15 07:37:10 +00:00
parent 4b9b0d3474
commit e97686d048
10 changed files with 70 additions and 71 deletions

View file

@ -70,7 +70,8 @@ pub fn maybe_inject_crates_ref(sess: &ParseSess,
attrs: vec![ast::Attribute {
style: ast::AttrStyle::Outer,
value: P(ast::MetaItem {
node: ast::MetaItemKind::Word(token::intern("prelude_import")),
name: token::intern("prelude_import"),
node: ast::MetaItemKind::Word,
span: span,
}),
id: attr::mk_attr_id(),