From d7638f9dba5cef5c4db7b9008196ede4450d8521 Mon Sep 17 00:00:00 2001 From: John Clements Date: Wed, 8 May 2013 15:27:29 -0700 Subject: change to newer macro escape mechanism, using uints in more places --- src/libsyntax/parse/parser.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/libsyntax/parse/parser.rs') diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 23e3f145398..4635db0e10f 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -2628,6 +2628,13 @@ impl Parser { // to the macro clause of parse_item_or_view_item. This // could use some cleanup, it appears to me. + // whoops! I now have a guess: I'm guessing the "parens-only" + // rule here is deliberate, to allow macro users to use parens + // for things that should be parsed as stmt_mac, and braces + // for things that should expand into items. Tricky, and + // somewhat awkward... and probably undocumented. Of course, + // I could just be wrong. + check_expected_item(self, item_attrs); // Potential trouble: if we allow macros with paths instead of -- cgit 1.4.1-3-g733a5