about summary refs log tree commit diff
path: root/src/tools
diff options
context:
space:
mode:
authorwinstxnhdw <winstxnhdw@gmail.com>2024-07-25 07:40:08 +0100
committerwinstxnhdw <winstxnhdw@gmail.com>2024-07-25 07:40:08 +0100
commit113c45847a7cb47ed4d93749d9d88fe97f5edbf5 (patch)
tree2f24e977b982159917fbcd86cbfa2cc7e0bc3002 /src/tools
parent75e5dadfa5017d77c214613be72edbecfd3f8e79 (diff)
downloadrust-113c45847a7cb47ed4d93749d9d88fe97f5edbf5.tar.gz
rust-113c45847a7cb47ed4d93749d9d88fe97f5edbf5.zip
fix: temporarily use `ast::GenericParamList`
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/rust-analyzer/crates/syntax/src/ast/node_ext.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/crates/syntax/src/ast/node_ext.rs b/src/tools/rust-analyzer/crates/syntax/src/ast/node_ext.rs
index 911e3d823de..16abb2984d7 100644
--- a/src/tools/rust-analyzer/crates/syntax/src/ast/node_ext.rs
+++ b/src/tools/rust-analyzer/crates/syntax/src/ast/node_ext.rs
@@ -794,6 +794,8 @@ pub enum TypeBoundKind {
     PathType(ast::PathType),
     /// for<'a> ...
     ForType(ast::ForType),
+    /// use
+    Use(ast::GenericParamList),
     /// 'a
     Lifetime(ast::Lifetime),
 }
@@ -804,6 +806,8 @@ impl ast::TypeBound {
             TypeBoundKind::PathType(path_type)
         } else if let Some(for_type) = support::children(self.syntax()).next() {
             TypeBoundKind::ForType(for_type)
+        } else if let Some(generic_param_list) = self.generic_param_list() {
+            TypeBoundKind::Use(generic_param_list)
         } else if let Some(lifetime) = self.lifetime() {
             TypeBoundKind::Lifetime(lifetime)
         } else {