diff options
| author | Eduard Bopp <eduard.bopp@aepsil0n.de> | 2014-02-11 00:19:27 +0100 |
|---|---|---|
| committer | Eduard Bopp <eduard.bopp@aepsil0n.de> | 2014-02-11 00:19:27 +0100 |
| commit | a2fab457dcb6e65e119694acacc8d92fde2569c2 (patch) | |
| tree | 4327b069cce6375c188b8cc44d4fcbaff46aecc1 /src/libsyntax/parse | |
| parent | cf9164f94c6a7e3717f67b1fb74a7662639835f0 (diff) | |
| download | rust-a2fab457dcb6e65e119694acacc8d92fde2569c2.tar.gz rust-a2fab457dcb6e65e119694acacc8d92fde2569c2.zip | |
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.
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/token.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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"); } } |
