about summary refs log tree commit diff
path: root/compiler/rustc_span/src
diff options
context:
space:
mode:
authorJules Bertholet <julesbertholet@quoi.xyz>2024-03-30 12:57:54 -0500
committerJules Bertholet <julesbertholet@quoi.xyz>2024-03-30 12:57:54 -0500
commitf37a4d55ee6a15a4d240de07a4a33766973866c7 (patch)
tree44fe35d29d43dccc42a5972e571f313436f6924b /compiler/rustc_span/src
parent877d36b1928b5a4f7d193517b48290ecbe404d71 (diff)
downloadrust-f37a4d55ee6a15a4d240de07a4a33766973866c7.tar.gz
rust-f37a4d55ee6a15a4d240de07a4a33766973866c7.zip
Implement "&<pat> everywhere"
The original proposal allows reference patterns
with "compatible" mutability, however it's not clear
what that means so for now we require an exact match.

I don't know the type system code well, so if something
seems to not make sense it's probably because I made a
mistake
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 998b1a5c7ea..1a20ed1caa3 100644
--- a/compiler/rustc_span/src/symbol.rs
+++ b/compiler/rustc_span/src/symbol.rs
@@ -380,6 +380,7 @@ symbols! {
         alu32,
         always,
         and,
+        and_pat_everywhere,
         and_then,
         anon,
         anon_adt,