rust/tests
Matthias Krüger 42ab090be9
Rollup merge of #124488 - est31:arbitrary_expressions_error, r=pnkfelix
Add a note to the ArbitraryExpressionInPattern error

The current "arbitrary expressions aren't allowed in patterns" error is confusing, as it fires for code where it *looks* like a pattern but the compiler still treats it as an expression. That this is due to the `:expr` fragment specifier forcing the expression-ness property on the code.

In the test suite, the "arbitrary expressions aren't allowed in patterns" error can only be found in combination with macro_rules macros that force expression-ness of their content, namely via `:expr` metavariables. I also can't come up with cases where there would be an expression instead of a pattern, so I think it's always coming from an `:expr`.

In order to make the error less confusing, this adds a note explaining the weird `:expr` fragment behaviour.

Fixes #99380
2024-04-29 22:37:51 +02:00
..
assembly also update windows slack-protector tests 2024-04-22 23:45:04 -04:00
auxiliary
codegen Auto merge of #121298 - nikic:writable, r=cuviper 2024-04-25 04:31:56 +00:00
codegen-units
coverage Auto merge of #124255 - RenjiSann:renji/mcdc-nested-expressions, r=Zalathar 2024-04-29 11:54:49 +00:00
coverage-run-rustdoc
crashes Rollup merge of #124504 - gurry:123710-union-ICE, r=oli-obk 2024-04-29 18:03:24 +01:00
debuginfo Update lldb only tests 2024-04-26 04:11:05 +03:00
incremental add test for incremental ICE: slice-pattern-const.rs #83085 2024-04-21 14:45:00 +02:00
mir-opt Update mir-opt tests, add proper regression test 2024-04-28 21:10:09 +01:00
pretty Rollup merge of #124269 - scrabsha:sasha/fix-124206, r=dtolnay 2024-04-29 18:03:22 +01:00
run-make Use named struct arguments instead of comment named args 2024-04-28 17:17:22 +02:00
run-make-fulldeps
run-pass-valgrind
rustdoc Fix the assertion crash from rustdoc document indent widths 2024-04-28 11:17:09 +08:00
rustdoc-gui Rollup merge of #124197 - GuillaumeGomez:move-duplicated-code, r=notriddle 2024-04-23 06:24:56 +02:00
rustdoc-js
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 #122591 - gurry:122162-impl-type-binding-suggestion, r=fmease 2024-04-23 17:25:14 +02:00
ui Rollup merge of #124488 - est31:arbitrary_expressions_error, r=pnkfelix 2024-04-29 22:37:51 +02:00
ui-fulldeps Rollup merge of #124218 - Xiretza:subsubdiagnostics, r=davidtwco 2024-04-23 17:25:17 +02:00
COMPILER_TESTS.md