From a2fab457dcb6e65e119694acacc8d92fde2569c2 Mon Sep 17 00:00:00 2001 From: Eduard Bopp Date: Tue, 11 Feb 2014 00:19:27 +0100 Subject: Reserve `do` as a keyword Resolves issue #12157. `do` is hereby reinstated as a keyword; no syntax is associated with it though. Along the way, a unit test had to be adapted, since it was using `do` as a method identifier. Breaking changes: - Any code using `do` as an identifier will no longer work. --- 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 d32411b4f05..1e9eab1573b 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -492,6 +492,7 @@ declare_special_idents_and_keywords! { (53, Typeof, "typeof"); (54, Unsized, "unsized"); (55, Yield, "yield"); + (56, Do, "do"); } } -- cgit 1.4.1-3-g733a5