Mark incorrect recovered char
literals as TyErr
to avoid type errors
This commit is contained in:
parent
e9af312932
commit
a4ff1dcc53
9 changed files with 26 additions and 4 deletions
|
@ -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,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue