about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates/syntax/rust.ungram
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-03-10 15:57:19 +0100
committerGitHub <noreply@github.com>2025-03-10 15:57:19 +0100
commit2abeceeb97f180bec3a331b240160c240285dd89 (patch)
tree0f670342addd4f1349c20aa9d6f855912faf5213 /src/tools/rust-analyzer/crates/syntax/rust.ungram
parentd1a875cd37ea27346e43d3091dabd84258113150 (diff)
parent52f39ffe8320955868ce03eb22d9020c568472da (diff)
Rollup merge of #138305 - lnicola:sync-from-ra, r=lnicola
Subtree update of `rust-analyzer`

r? `@ghost`
Diffstat (limited to 'src/tools/rust-analyzer/crates/syntax/rust.ungram')
-rw-r--r--src/tools/rust-analyzer/crates/syntax/rust.ungram5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/crates/syntax/rust.ungram b/src/tools/rust-analyzer/crates/syntax/rust.ungram
index 88d7beb897e..70a91af6c47 100644
--- a/src/tools/rust-analyzer/crates/syntax/rust.ungram
+++ b/src/tools/rust-analyzer/crates/syntax/rust.ungram
@@ -279,6 +279,11 @@ Adt =
 | Struct
 | Union
 
+VariantDef =
+  Struct
+| Union
+| Variant
+
 Const =
   Attr* Visibility?
   'default'?