General MetaItem encapsulation rewrites.
This commit is contained in:
@@ -302,9 +302,8 @@ fn contains_macro_use(fld: &mut MacroExpander, attrs: &[ast::Attribute]) -> bool
|
||||
};
|
||||
|
||||
if is_use {
|
||||
match attr.node.value.node {
|
||||
ast::MetaItemKind::Word(..) => (),
|
||||
_ => fld.cx.span_err(attr.span, "arguments to macro_use are not allowed here"),
|
||||
if !attr.is_word() {
|
||||
fld.cx.span_err(attr.span, "arguments to macro_use are not allowed here");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user