about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-03-09 12:11:53 +0100
committerGitHub <noreply@github.com>2023-03-09 12:11:53 +0100
commitbec7011a2c9f16b94d659298cfa38cfd88bcfa1b (patch)
tree70508e253676d1d077c04258a56529dfa8b283dc /library/std/src
parentaedd94fcab685f7530b07745dbba196d501ecb5c (diff)
parent252e0b338575e6dc1d5bde8f9d38fca91305203f (diff)
downloadrust-bec7011a2c9f16b94d659298cfa38cfd88bcfa1b.tar.gz
rust-bec7011a2c9f16b94d659298cfa38cfd88bcfa1b.zip
Rollup merge of #108854 - Ezrashaw:improve-int-idents, r=oli-obk
feat/refactor: improve errors in case of ident with number at start

Improve parser code when we parse a integer (or float) literal but expect an identifier. We emit an error message saying that identifiers can't begin with numbers. This PR just improves that code and expands it to all identifiers. Note that I haven't implemented error recovery (this didn't exist before anyway), I might do that in a follow up PR.
Diffstat (limited to 'library/std/src')
0 files changed, 0 insertions, 0 deletions