diff options
| author | Badel2 <2badel2@gmail.com> | 2017-11-05 00:46:41 +0100 |
|---|---|---|
| committer | Badel2 <2badel2@gmail.com> | 2017-11-06 20:33:51 +0100 |
| commit | 3c41c28f48b4793097bcce83748d90a30b117e12 (patch) | |
| tree | 1ab6e6ce660031fade466fe5d14886555d99c023 /src/libsyntax/util | |
| parent | 4bd6be9dc6055d0cf0d36b1d6bcd8bfef545698f (diff) | |
Using `...` in expressions is now an error
Diffstat (limited to 'src/libsyntax/util')
| -rw-r--r-- | src/libsyntax/util/parser.rs | 3 |
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 |
