Using ... in expressions is now an error

This commit is contained in:
Badel2
2017-11-05 00:46:41 +01:00
parent 4bd6be9dc6
commit 3c41c28f48
3 changed files with 21 additions and 16 deletions

View File

@@ -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