rust/tests
Matthias Krüger afb6c4681a
Rollup merge of - compiler-errors:parser-fatal, r=oli-obk
Don't fatal when calling `expect_one_of` when recovering arg in `parse_seq`

In `parse_seq`, when parsing a sequence of token-separated items, if we don't see a separator, we try to parse another item eagerly in order to give a good diagnostic and recover from a missing separator:
d1a0fa5ed3/compiler/rustc_parse/src/parser/mod.rs (L900-L901)

If parsing the item itself calls `expect_one_of`, then we will fatal because of :
d1a0fa5ed3/compiler/rustc_parse/src/parser/mod.rs (L513-L516)

For `precise_capturing` feature I implemented, we do end up calling `expected_one_of`:
d1a0fa5ed3/compiler/rustc_parse/src/parser/ty.rs (L712-L714)

This leads the compiler to fatal *before* having emitted the first error, leading to absolutely no useful information for the user about what happened in the parser.

This PR makes it so that we stop doing that.

Fixes 
2024-04-23 20:17:51 +02:00
..
assembly Add support for Arm64EC inline assembly 2024-04-10 10:06:44 -07:00
auxiliary
codegen Rollup merge of - WaffleLapkin:dellvmization, r=scottmcm,RalfJung,antoyo 2024-04-23 20:17:51 +02:00
codegen-units
coverage coverage: Branch coverage tests for match arms 2024-04-22 21:55:33 +10:00
coverage-run-rustdoc
crashes Rollup merge of - gurry:124031-ice-layout-errored, r=compiler-errors 2024-04-23 06:24:55 +02:00
debuginfo Stabilize generic NonZero. 2024-04-22 18:48:47 +02:00
incremental Add missing -Zquery-dep-graph to the spike-neg incr comp tests 2024-04-06 13:36:16 +00:00
mir-opt Rollup merge of - reitermarkus:generic-nonzero-stable, r=dtolnay 2024-04-22 20:26:00 +02:00
pretty Disallow ambiguous attributes on expressions 2024-04-18 20:42:19 +02:00
run-make Auto merge of - beetrees:incremental-os-str, r=Nadrieril 2024-04-22 04:00:58 +00:00
run-make-fulldeps
run-pass-valgrind
rustdoc Auto merge of - GuillaumeGomez:display-stability-version, r=rustdoc 2024-04-19 14:17:29 +00:00
rustdoc-gui Rollup merge of - GuillaumeGomez:move-duplicated-code, r=notriddle 2024-04-23 06:24:56 +02:00
rustdoc-js rustdoc-search: single result for items with multiple paths 2024-04-08 17:07:14 -07:00
rustdoc-js-std rustdoc-search: fix description on aliases in results 2024-04-18 22:21:29 -07:00
rustdoc-json
rustdoc-ui Rollup merge of - Urgau:stabilize-check-cfg, r=petrochenkov 2024-04-16 17:54:41 +02:00
ui Rollup merge of - compiler-errors:parser-fatal, r=oli-obk 2024-04-23 20:17:51 +02:00
ui-fulldeps Rollup merge of - RalfJung:panic_str, r=m-ou-se 2024-04-23 12:10:25 +02:00
COMPILER_TESTS.md