Skip to content
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

Update literal suffix docs for rust-lang/rust#102944 #1304

Closed
mattheww opened this issue Nov 19, 2022 · 1 comment · Fixed by #1305
Closed

Update literal suffix docs for rust-lang/rust#102944 #1304

mattheww opened this issue Nov 19, 2022 · 1 comment · Fixed by #1305
Assignees
Labels
A-expressions Area: Expressions A-grammar Area: Syntax and parsing A-lexer Area: Lexical specification

Comments

@mattheww
Copy link
Contributor

mattheww commented Nov 19, 2022

rust-lang/rust#102944 has changed how literals with suffixes are dealt with.

Previously, unknown suffixes were rejected by the parser. Now they are accepted by the parser and rejected at a later stage.

I think this means all the business about 'Number pseudoliterals' can disappear from tokens.md.

There are new tests in src/test/ui/lexer/error-stage.rs.

@mattheww
Copy link
Contributor Author

@rustbot claim
@rustbot label +A-lexer +A-grammar +A-expressions

@rustbot rustbot added A-expressions Area: Expressions A-grammar Area: Syntax and parsing A-lexer Area: Lexical specification labels Nov 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-expressions Area: Expressions A-grammar Area: Syntax and parsing A-lexer Area: Lexical specification
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants