Refactor P<ast::MetaItem>
-> ast::MetaItem
.
This commit is contained in:
parent
e97686d048
commit
f177a00ac9
14 changed files with 54 additions and 58 deletions
|
@ -69,11 +69,11 @@ pub fn maybe_inject_crates_ref(sess: &ParseSess,
|
|||
krate.module.items.insert(0, P(ast::Item {
|
||||
attrs: vec![ast::Attribute {
|
||||
style: ast::AttrStyle::Outer,
|
||||
value: P(ast::MetaItem {
|
||||
value: ast::MetaItem {
|
||||
name: token::intern("prelude_import"),
|
||||
node: ast::MetaItemKind::Word,
|
||||
span: span,
|
||||
}),
|
||||
},
|
||||
id: attr::mk_attr_id(),
|
||||
is_sugared_doc: false,
|
||||
span: span,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue