about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-09-01 18:38:05 -0700
committerBrian Anderson <banderson@mozilla.com>2012-09-01 18:38:18 -0700
commit80c4f74c29ede062909db2b048b5b75820730994 (patch)
treed3b43776d36ddcc9d9582ab95745df3fdbddd95c /src/libsyntax/parse/parser.rs
parentd777e5133360876baa4213f81a33934f04768a0f (diff)
downloadrust-80c4f74c29ede062909db2b048b5b75820730994.tar.gz
rust-80c4f74c29ede062909db2b048b5b75820730994.zip
Remove the 'to' keyword
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 0b18d7d9e6e..d96401b00b3 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -1869,7 +1869,7 @@ struct parser {
                 || self.is_keyword(~"false")
             {
                 let val = self.parse_expr_res(RESTRICT_NO_BAR_OP);
-                if self.eat_keyword(~"to") || self.eat(token::DOTDOT) {
+                if self.eat(token::DOTDOT) {
                     let end = self.parse_expr_res(RESTRICT_NO_BAR_OP);
                     pat = pat_range(val, end);
                 } else {