commit | d69fc2b26a812b14ec4d0f8f628b227303a5787f | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Tue Jan 23 09:39:14 2018 -0800 |
committer | David Tolnay <dtolnay@gmail.com> | Tue Jan 23 09:39:14 2018 -0800 |
tree | 145ea2a11451d887c4cd1202e99b9c43e0b5c7c4 | |
parent | 7037c9b9f30803400e8bdd031a833607d154cbec [diff] [blame] |
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