rust/compiler/rustc_parse/src
Matthias Krüger bec7011a2c
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.
2023-03-09 12:11:53 +01:00
..
lexer Simplify sort_by calls 2023-03-07 18:13:41 +00:00
parser feat/refactor: improve errors in case of ident with number at start 2023-03-09 21:29:32 +13:00
errors.rs feat/refactor: improve errors in case of ident with number at start 2023-03-09 21:29:32 +13:00
lib.rs refactor parse_token_trees to not return unmatched_delims 2023-02-28 07:57:17 +00:00
validate_attr.rs Avoid unnecessary MetaItem/Attribute conversions. 2022-11-29 12:08:57 +11:00