about summary refs log tree commit diff
path: root/src/libsyntax/util
diff options
context:
space:
mode:
authorBadel2 <2badel2@gmail.com>2017-11-05 00:46:41 +0100
committerBadel2 <2badel2@gmail.com>2017-11-06 20:33:51 +0100
commit3c41c28f48b4793097bcce83748d90a30b117e12 (patch)
tree1ab6e6ce660031fade466fe5d14886555d99c023 /src/libsyntax/util
parent4bd6be9dc6055d0cf0d36b1d6bcd8bfef545698f (diff)
Using `...` in expressions is now an error
Diffstat (limited to 'src/libsyntax/util')
-rw-r--r--src/libsyntax/util/parser.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/util/parser.rs b/src/libsyntax/util/parser.rs
index 590874806d7..6014ec5aa92 100644
--- a/src/libsyntax/util/parser.rs
+++ b/src/libsyntax/util/parser.rs
@@ -106,7 +106,8 @@ impl AssocOp {
             Token::OrOr => Some(LOr),
             Token::DotDot => Some(DotDot),
             Token::DotDotEq => Some(DotDotEq),
-            Token::DotDotDot => Some(DotDotEq), // remove this after SNAP
+            // DotDotDot is no longer supported, but we need some way to display the error
+            Token::DotDotDot => Some(DotDotEq),
             Token::Colon => Some(Colon),
             _ if t.is_keyword(keywords::As) => Some(As),
             _ => None