about summary refs log tree commit diff
path: root/compiler/rustc_span/src
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2024-04-05 16:38:50 +0200
committerGitHub <noreply@github.com>2024-04-05 16:38:50 +0200
commitf2f8d8b722fdacc6a6e02c2289e3e36571749a68 (patch)
tree8c31db33f4f81a9558f8d62ce9af69a111ead861 /compiler/rustc_span/src
parentc36c0095776f1cbc39d15a206b4b1018b329b4aa (diff)
parente5376f3947ba8faf0f7c3a9543366060d662357d (diff)
downloadrust-f2f8d8b722fdacc6a6e02c2289e3e36571749a68.tar.gz
rust-f2f8d8b722fdacc6a6e02c2289e3e36571749a68.zip
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
Diffstat (limited to 'compiler/rustc_span/src')
-rw-r--r--compiler/rustc_span/src/symbol.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs
index a13c9c9b278..ea0f7adf6f9 100644
--- a/compiler/rustc_span/src/symbol.rs
+++ b/compiler/rustc_span/src/symbol.rs
@@ -1456,6 +1456,7 @@ symbols! {
         receiver,
         recursion_limit,
         reexport_test_harness_main,
+        ref_pat_everywhere,
         ref_unwind_safe_trait,
         reference,
         reflect,