]> git.lizzy.rs Git - rust.git/commitdiff
remove outdated comment
authorJohn Clements <clements@racket-lang.org>
Mon, 7 Jul 2014 21:27:07 +0000 (14:27 -0700)
committerJohn Clements <clements@racket-lang.org>
Tue, 8 Jul 2014 23:27:37 +0000 (16:27 -0700)
I believe this comment is now irrelevant, as a result of
commit 6757053cffb585249105fbd76f

src/libsyntax/parse/parser.rs

index 584670cc65480c0e18ec51b6f08be87d7058eb12..b77b366021cbcfa327d5c0802b3541098482cd64 100644 (file)
@@ -3233,18 +3233,6 @@ fn check_expected_item(p: &mut Parser, found_attrs: bool) {
         } else if is_ident(&self.token)
             && !token::is_any_keyword(&self.token)
             && self.look_ahead(1, |t| *t == token::NOT) {
-            // parse a macro invocation. Looks like there's serious
-            // overlap here; if this clause doesn't catch it (and it
-            // won't, for brace-delimited macros) it will fall through
-            // 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.is_empty());