-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When recovering char
s, still give them the char
type, instead of &str
#57384
Comments
This line would have to be changed to use rust/src/libsyntax/parse/lexer/mod.rs Line 1448 in 8e2063d
Ideally, we would add a new literal type rust/src/libsyntax/parse/token.rs Lines 59 to 69 in 8e2063d
that will later be interpreted to be of type |
@estebank I wanna tackle this, but I don't know how to add a new literal type |
@JohnTitor That would be the "hard" way of solving this. That would entail adding a new |
@estebank I want to open a PR for fixing this issue, can I ask you to review? |
@JohnTitor of course! Just add |
test/ui/parser/lex-bad-char-literals-3.stderr
shouldn't emit a type error.The text was updated successfully, but these errors were encountered: