about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorWinston H. <56998716+winstxnhdw@users.noreply.github.com>2024-07-24 10:42:20 +0100
committerGitHub <noreply@github.com>2024-07-24 10:42:20 +0100
commit75e5dadfa5017d77c214613be72edbecfd3f8e79 (patch)
tree40ac27b215263817a4bc39526f50ed37222c9b00 /src
parenta0e1256515e35cf829640f46b6f336462a77d2b1 (diff)
downloadrust-75e5dadfa5017d77c214613be72edbecfd3f8e79.tar.gz
rust-75e5dadfa5017d77c214613be72edbecfd3f8e79.zip
fix: `use` cannot have optional generics
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/tools/rust-analyzer/crates/syntax/rust.ungram2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rust-analyzer/crates/syntax/rust.ungram b/src/tools/rust-analyzer/crates/syntax/rust.ungram
index 272796bb3b1..c23bcd69149 100644
--- a/src/tools/rust-analyzer/crates/syntax/rust.ungram
+++ b/src/tools/rust-analyzer/crates/syntax/rust.ungram
@@ -629,7 +629,7 @@ TypeBoundList =
 TypeBound =
   Lifetime
 | ('~' 'const' | 'const')? 'async'? '?'? Type
-| 'use' GenericParamList?
+| 'use' GenericParamList
 
 //************************//
 //        Patterns        //