rust/compiler
Guillaume Gomez 7b2bfa361e
Rollup merge of #146064 - jullanggit:patch-1, r=fmease
Add compiler error when trying to use concat metavar expr in repetitions

## Disclaimer
This is my first PR to rust, so if I missed/could improve something about this PR, please excuse and tell me!
## The improvement
The [metavar_expr_concat feature](https://github.com/rust-lang/rust/issues/124225) currently does not seem to support nested repetitions, and throws an ICE without much explanation if the relevant code path is hit.
This PR adds a draft compiler error that attempts to explain the issue. I am not 100% sure what all the ways of triggering this error are, so the message is currently pretty generic, please do correct me if there's something wrong with it or it could be improved.

Thank you for you time!

Fixes rust-lang/rust#140479.
2025-09-02 17:08:54 +02:00
..
rustc rename stable_mir to rustc_public, and rustc_smir to rustc_public_bridge 2025-07-14 09:25:54 +00:00
rustc_abi Rollup merge of #144066 - RalfJung:extern-c-variadics, r=workingjubilee 2025-09-02 17:08:52 +02:00
rustc_arena Introduce Arena::try_alloc_from_iter. 2025-04-19 01:13:18 +00:00
rustc_ast Rollup merge of #145783 - Erk-:et-cetera-span, r=compiler-errors 2025-09-02 17:08:52 +02:00
rustc_ast_ir turn pointer width into an integer in target.json 2025-08-27 23:44:49 +02:00
rustc_ast_lowering Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_ast_passes Rollup merge of #144066 - RalfJung:extern-c-variadics, r=workingjubilee 2025-09-02 17:08:52 +02:00
rustc_ast_pretty Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_attr_parsing Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_baked_icu_data Use default locale fallback data 2025-08-28 09:48:54 +00:00
rustc_borrowck Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_builtin_macros Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_codegen_cranelift Introduce MirDumper and MirWriter. 2025-09-01 09:19:03 +10:00
rustc_codegen_gcc fix target-pointer-width in tests 2025-08-27 23:44:49 +02:00
rustc_codegen_llvm Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_codegen_ssa Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_const_eval Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_data_structures Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_driver Remove recursion_limit increases. 2025-04-02 16:25:27 +11:00
rustc_driver_impl Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_error_codes Changes to the uitests 2025-08-27 20:25:18 +02:00
rustc_error_messages Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_errors Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_expand Rollup merge of #146064 - jullanggit:patch-1, r=fmease 2025-09-02 17:08:54 +02:00
rustc_feature Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_fluent_macro Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_fs_util Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_graphviz Remove #![warn(unreachable_pub)] from all compiler/ crates. 2025-03-11 13:14:21 +11:00
rustc_hashes Revert "Use workspace lints for crates in compiler/ #138084" 2025-03-10 18:12:47 +08:00
rustc_hir Rollup merge of #145783 - Erk-:et-cetera-span, r=compiler-errors 2025-09-02 17:08:52 +02:00
rustc_hir_analysis Rollup merge of #144066 - RalfJung:extern-c-variadics, r=workingjubilee 2025-09-02 17:08:52 +02:00
rustc_hir_id rustc_hir_id: Add a comment explaining why the crate exists 2025-08-20 15:04:00 -07:00
rustc_hir_pretty add span to struct pattern rest (..) 2025-08-25 09:55:50 +02:00
rustc_hir_typeck Rollup merge of #145783 - Erk-:et-cetera-span, r=compiler-errors 2025-09-02 17:08:52 +02:00
rustc_incremental Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_index Update documentation. 2025-08-24 22:15:19 +00:00
rustc_index_macros Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_infer Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_interface Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_lexer Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_lint Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_lint_defs Fix stage 1 compiler tests 2025-08-30 15:28:41 +02:00
rustc_llvm Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_log Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_macros Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_metadata Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_middle Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_mir_build Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_mir_dataflow Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_mir_transform Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_monomorphize Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_next_trait_solver Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_parse Rollup merge of #145783 - Erk-:et-cetera-span, r=compiler-errors 2025-09-02 17:08:52 +02:00
rustc_parse_format Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_passes Rollup merge of #145783 - Erk-:et-cetera-span, r=compiler-errors 2025-09-02 17:08:52 +02:00
rustc_pattern_analysis Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_privacy Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_proc_macro Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_public Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_public_bridge Remove useless lifetime parameter. 2025-07-23 23:54:37 +00:00
rustc_query_impl Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_query_system Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_resolve Rollup merge of #145783 - Erk-:et-cetera-span, r=compiler-errors 2025-09-02 17:08:52 +02:00
rustc_sanitizers Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_serialize Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_session Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_span Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_symbol_mangling Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_target Rollup merge of #146034 - taiki-e:target-spec, r=nnethercote 2025-09-02 17:08:53 +02:00
rustc_thread_pool Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_trait_selection Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_traits Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_transmute Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_ty_utils Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_type_ir Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00
rustc_type_ir_macros Revert introduction of [workspace.dependencies]. 2025-09-02 19:12:54 +10:00