Avoid including attributes in bang macro invocations.

This commit is contained in:
Jeffrey Seyfried
2016-12-01 11:54:01 +00:00
parent 421c5d11c1
commit 6f040b48ef
2 changed files with 19 additions and 25 deletions

View File

@@ -217,8 +217,7 @@ pub trait IdentMacroExpander {
cx: &'cx mut ExtCtxt,
sp: Span,
ident: ast::Ident,
token_tree: Vec<tokenstream::TokenTree>,
attrs: Vec<ast::Attribute>)
token_tree: Vec<tokenstream::TokenTree>)
-> Box<MacResult+'cx>;
}
@@ -234,8 +233,7 @@ impl<F> IdentMacroExpander for F
cx: &'cx mut ExtCtxt,
sp: Span,
ident: ast::Ident,
token_tree: Vec<tokenstream::TokenTree>,
_attrs: Vec<ast::Attribute>)
token_tree: Vec<tokenstream::TokenTree>)
-> Box<MacResult+'cx>
{
(*self)(cx, sp, ident, token_tree)