1
Fork 0

Rollup merge of #123311 - Jules-Bertholet:andpat-everywhere, r=Nadrieril

Match ergonomics: implement "`&`pat everywhere"

Implements the eat-two-layers (feature gate `and_pat_everywhere`, all editions) ~and the eat-one-layer (feature gate `and_eat_one_layer_2024`, edition 2024 only, takes priority on that edition when both feature gates are active)~ (EDIT: will be done in later PR) semantics.

cc #123076

r? ``@Nadrieril``

``@rustbot`` label A-patterns A-edition-2024
This commit is contained in:
Guillaume Gomez 2024-04-05 16:38:50 +02:00 committed by GitHub
commit f2f8d8b722
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 281 additions and 28 deletions

View file

@ -1456,6 +1456,7 @@ symbols! {
receiver,
recursion_limit,
reexport_test_harness_main,
ref_pat_everywhere,
ref_unwind_safe_trait,
reference,
reflect,