Disallow generic arguments in path of a macro invocation
diff --git a/src/expr.rs b/src/expr.rs
index 4d170a9..583daac 100644
--- a/src/expr.rs
+++ b/src/expr.rs
@@ -2354,7 +2354,7 @@
#[cfg(feature = "full")]
named!(stmt_mac -> Stmt, do_parse!(
attrs: many0!(Attribute::parse_outer) >>
- what: syn!(Path) >>
+ what: call!(Path::parse_mod_style) >>
bang: punct!(!) >>
// Only parse braces here; paren and bracket will get parsed as
// expression statements
diff --git a/src/item.rs b/src/item.rs
index 9300ff1..17ea6b9 100644
--- a/src/item.rs
+++ b/src/item.rs
@@ -731,7 +731,7 @@
impl_synom!(ItemMacro "macro item" do_parse!(
attrs: many0!(Attribute::parse_outer) >>
- what: syn!(Path) >>
+ what: call!(Path::parse_mod_style) >>
bang: punct!(!) >>
ident: option!(syn!(Ident)) >>
body: call!(tt::delimited) >>
diff --git a/src/mac.rs b/src/mac.rs
index b17a466..2ccc8c9 100644
--- a/src/mac.rs
+++ b/src/mac.rs
@@ -73,7 +73,7 @@
impl Synom for Macro {
named!(parse -> Self, do_parse!(
- what: syn!(Path) >>
+ what: call!(Path::parse_mod_style) >>
bang: punct!(!) >>
body: call!(tt::delimited) >>
(Macro {