Skip to content

Commit d42e857

Browse files
committed
fix: temporarily use ast::GenericParamList
1 parent 5af51fa commit d42e857

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/syntax/src/ast/node_ext.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,8 @@ pub enum TypeBoundKind {
794794
PathType(ast::PathType),
795795
/// for<'a> ...
796796
ForType(ast::ForType),
797+
/// use
798+
Use(ast::GenericParamList),
797799
/// 'a
798800
Lifetime(ast::Lifetime),
799801
}
@@ -804,6 +806,8 @@ impl ast::TypeBound {
804806
TypeBoundKind::PathType(path_type)
805807
} else if let Some(for_type) = support::children(self.syntax()).next() {
806808
TypeBoundKind::ForType(for_type)
809+
} else if let Some(generic_param_list) = self.generic_param_list() {
810+
TypeBoundKind::Use(generic_param_list)
807811
} else if let Some(lifetime) = self.lifetime() {
808812
TypeBoundKind::Lifetime(lifetime)
809813
} else {

0 commit comments

Comments
 (0)