[breaking-change] don't glob export ast::MetaItem_
This commit is contained in:
committed by
Oliver Schneider
parent
e797e1961d
commit
14e09ad468
@@ -1102,21 +1102,21 @@ impl<'a> AstBuilder for ExtCtxt<'a> {
|
||||
}
|
||||
|
||||
fn meta_word(&self, sp: Span, w: InternedString) -> P<ast::MetaItem> {
|
||||
P(respan(sp, ast::MetaWord(w)))
|
||||
P(respan(sp, ast::MetaItemKind::Word(w)))
|
||||
}
|
||||
fn meta_list(&self,
|
||||
sp: Span,
|
||||
name: InternedString,
|
||||
mis: Vec<P<ast::MetaItem>> )
|
||||
-> P<ast::MetaItem> {
|
||||
P(respan(sp, ast::MetaList(name, mis)))
|
||||
P(respan(sp, ast::MetaItemKind::List(name, mis)))
|
||||
}
|
||||
fn meta_name_value(&self,
|
||||
sp: Span,
|
||||
name: InternedString,
|
||||
value: ast::LitKind)
|
||||
-> P<ast::MetaItem> {
|
||||
P(respan(sp, ast::MetaNameValue(name, respan(sp, value))))
|
||||
P(respan(sp, ast::MetaItemKind::NameValue(name, respan(sp, value))))
|
||||
}
|
||||
|
||||
fn item_use(&self, sp: Span,
|
||||
|
||||
@@ -348,7 +348,7 @@ fn contains_macro_use(fld: &mut MacroExpander, attrs: &[ast::Attribute]) -> bool
|
||||
|
||||
if is_use {
|
||||
match attr.node.value.node {
|
||||
ast::MetaWord(..) => (),
|
||||
ast::MetaItemKind::Word(..) => (),
|
||||
_ => fld.cx.span_err(attr.span, "arguments to macro_use are not allowed here"),
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user