rust/compiler
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
..
rustc
rustc_abi
rustc_apfloat
rustc_arena
rustc_ast Rename MapInPlace as FlatMapInPlace. 2023-03-08 15:53:56 +11:00
rustc_ast_lowering
rustc_ast_passes
rustc_ast_pretty
rustc_attr
rustc_baked_icu_data
rustc_borrowck Rollup merge of #108856 - Zeegomo:remove-drop-and-rep, r=tmiasko 2023-03-08 21:26:51 +01:00
rustc_builtin_macros
rustc_codegen_cranelift Rollup merge of #108856 - Zeegomo:remove-drop-and-rep, r=tmiasko 2023-03-08 21:26:51 +01:00
rustc_codegen_gcc Rollup merge of #108783 - antoyo:sync-cg_gcc-2023-03-04, r=cjgillot 2023-03-07 19:57:45 +01:00
rustc_codegen_llvm Rollup merge of #108822 - nikic:legacy-pm-removal-2, r=cuviper 2023-03-07 19:57:46 +01:00
rustc_codegen_ssa Rollup merge of #108856 - Zeegomo:remove-drop-and-rep, r=tmiasko 2023-03-08 21:26:51 +01:00
rustc_const_eval Rollup merge of #108856 - Zeegomo:remove-drop-and-rep, r=tmiasko 2023-03-08 21:26:51 +01:00
rustc_data_structures Rollup merge of #108887 - nnethercote:rename-MapInPlace, r=lqd 2023-03-08 21:24:53 +01:00
rustc_driver
rustc_driver_impl
rustc_error_codes
rustc_error_messages
rustc_errors
rustc_expand Rename MapInPlace as FlatMapInPlace. 2023-03-08 15:53:56 +11:00
rustc_feature
rustc_fs_util
rustc_graphviz
rustc_hir
rustc_hir_analysis Auto merge of #108920 - matthiaskrgr:rollup-qrr9a0u, r=matthiaskrgr 2023-03-09 08:21:17 +00:00
rustc_hir_pretty
rustc_hir_typeck Auto merge of #108920 - matthiaskrgr:rollup-qrr9a0u, r=matthiaskrgr 2023-03-09 08:21:17 +00:00
rustc_incremental
rustc_index
rustc_infer Rollup merge of #108839 - compiler-errors:canonicalize-the-root-var, r=lcnr 2023-03-08 21:26:51 +01:00
rustc_interface
rustc_lexer
rustc_lint
rustc_lint_defs
rustc_llvm Remove references to PassManagerBuilder 2023-03-06 16:55:52 +01:00
rustc_log
rustc_macros
rustc_metadata
rustc_middle Rollup merge of #108294 - compiler-errors:arbitary-sugg-binder, r=TaKO8Ki 2023-03-09 12:11:52 +01:00
rustc_mir_build Rollup merge of #108856 - Zeegomo:remove-drop-and-rep, r=tmiasko 2023-03-08 21:26:51 +01:00
rustc_mir_dataflow Rollup merge of #108856 - Zeegomo:remove-drop-and-rep, r=tmiasko 2023-03-08 21:26:51 +01:00
rustc_mir_transform Auto merge of #108920 - matthiaskrgr:rollup-qrr9a0u, r=matthiaskrgr 2023-03-09 08:21:17 +00:00
rustc_monomorphize Auto merge of #108920 - matthiaskrgr:rollup-qrr9a0u, r=matthiaskrgr 2023-03-09 08:21:17 +00:00
rustc_parse Rollup merge of #108854 - Ezrashaw:improve-int-idents, r=oli-obk 2023-03-09 12:11:53 +01:00
rustc_parse_format
rustc_passes Auto merge of #108312 - michaelwoerister:hash-set-not-hash-stable, r=eholk 2023-03-08 06:07:11 +00:00
rustc_plugin_impl
rustc_privacy
rustc_query_impl Auto merge of #108167 - Zoxc:query-config-instance-slim, r=cjgillot 2023-03-07 18:55:36 +00:00
rustc_query_system Auto merge of #108167 - Zoxc:query-config-instance-slim, r=cjgillot 2023-03-07 18:55:36 +00:00
rustc_resolve Simplify sort_by calls 2023-03-07 18:13:41 +00:00
rustc_serialize
rustc_session Rollup merge of #108873 - WaffleLapkin:cmp, r=cjgillot 2023-03-08 21:24:51 +01:00
rustc_smir Change item collection to be on demand 2023-03-07 12:47:25 -08:00
rustc_span Auto merge of #95317 - Jules-Bertholet:round_ties_to_even, r=pnkfelix,m-ou-se,scottmcm 2023-03-07 09:43:12 +00:00
rustc_symbol_mangling
rustc_target
rustc_trait_selection Auto merge of #108920 - matthiaskrgr:rollup-qrr9a0u, r=matthiaskrgr 2023-03-09 08:21:17 +00:00
rustc_traits
rustc_transmute
rustc_ty_utils Auto merge of #108312 - michaelwoerister:hash-set-not-hash-stable, r=eholk 2023-03-08 06:07:11 +00:00
rustc_type_ir