]> git.lizzy.rs Git - rust.git/commit
Reserve `do` as a keyword
authorEduard Bopp <eduard.bopp@aepsil0n.de>
Mon, 10 Feb 2014 23:19:27 +0000 (00:19 +0100)
committerEduard Bopp <eduard.bopp@aepsil0n.de>
Mon, 10 Feb 2014 23:19:27 +0000 (00:19 +0100)
commita2fab457dcb6e65e119694acacc8d92fde2569c2
tree4327b069cce6375c188b8cc44d4fcbaff46aecc1
parentcf9164f94c6a7e3717f67b1fb74a7662639835f0
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
src/test/compile-fail/keyword-do-as-identifier.rs [new file with mode: 0644]
src/test/run-pass/temporary-lifetime-for-conditions.rs