From d42e85758c9fe43e438aa6315b1af727f0e4f60d Mon Sep 17 00:00:00 2001 From: winstxnhdw Date: Thu, 25 Jul 2024 07:40:08 +0100 Subject: [PATCH] fix: temporarily use `ast::GenericParamList` --- crates/syntax/src/ast/node_ext.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/syntax/src/ast/node_ext.rs b/crates/syntax/src/ast/node_ext.rs index 911e3d823d..16abb2984d 100644 --- a/crates/syntax/src/ast/node_ext.rs +++ b/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 {