Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/syntax/rust.ungram')
-rw-r--r--crates/syntax/rust.ungram4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/syntax/rust.ungram b/crates/syntax/rust.ungram
index 768cf2013d..6bcf8ba743 100644
--- a/crates/syntax/rust.ungram
+++ b/crates/syntax/rust.ungram
@@ -748,6 +748,10 @@ Pat =
| TuplePat
| TupleStructPat
| ConstBlockPat
+| DerefPat
+
+DerefPat =
+ 'builtin' '#' 'deref' '(' Pat ')'
LiteralPat =
'-'? Literal