From 6680c9c5c797101fc5e0608cb2c3657517333148 Mon Sep 17 00:00:00 2001 From: Corey Richardson Date: Fri, 2 Jan 2015 16:41:24 -0500 Subject: syntax: implement 'macro input future proofing' See RFC 550 (https://github.com/rust-lang/rfcs/pull/550) for the motivation and details. If this breaks your code, add one of the listed tokens after the relevant non-terminal in your matcher. [breaking-change] --- src/libsyntax/parse/token.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index 094aacf3207..205589ba78e 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -392,6 +392,7 @@ impl fmt::Show for Nonterminal { } } + // Get the first "argument" macro_rules! first { ( $first:expr, $( $remainder:expr, )* ) => ( $first ) -- cgit 1.4.1-3-g733a5