Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/syntax/rust.ungram')
-rw-r--r--crates/syntax/rust.ungram8
1 files changed, 8 insertions, 0 deletions
diff --git a/crates/syntax/rust.ungram b/crates/syntax/rust.ungram
index 6bcf8ba743..408f2f4b32 100644
--- a/crates/syntax/rust.ungram
+++ b/crates/syntax/rust.ungram
@@ -665,6 +665,7 @@ Type =
| NeverType
| ParenType
| PathType
+| PatternType
| PtrType
| RefType
| SliceType
@@ -706,6 +707,9 @@ FnPtrType =
ForType =
ForBinder Type
+PatternType =
+ 'builtin' '#' 'pattern_type' '(' Type 'is' Pat ')'
+
ImplTraitType =
'impl' TypeBoundList
@@ -749,6 +753,10 @@ Pat =
| TupleStructPat
| ConstBlockPat
| DerefPat
+| NotNull
+
+NotNull =
+ '!' 'null'
DerefPat =
'builtin' '#' 'deref' '(' Pat ')'