Mark incorrect recovered char literals as TyErr to avoid type errors

This commit is contained in:
Yuki Okushi 2019-01-20 14:51:54 +09:00
parent e9af312932
commit a4ff1dcc53
9 changed files with 26 additions and 4 deletions

View file

@ -473,8 +473,7 @@ impl Token {
Le | EqEq | Ne | Ge | AndAnd | OrOr | Tilde | BinOpEq(..) | At | DotDotDot |
DotDotEq | Comma | Semi | ModSep | RArrow | LArrow | FatArrow | Pound | Dollar |
Question | OpenDelim(..) | CloseDelim(..) => return None,
Question | OpenDelim(..) | CloseDelim(..) |
Literal(..) | Ident(..) | Lifetime(..) | Interpolated(..) | DocComment(..) |
Whitespace | Comment | Shebang(..) | Eof => return None,
})