This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
src/tools/rust-analyzer/crates/syntax Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -629,6 +629,7 @@ TypeBoundList =
629
629
TypeBound =
630
630
Lifetime
631
631
| ('~' 'const' | 'const')? 'async'? '?'? Type
632
+ | 'use' GenericParamList?
632
633
633
634
//************************//
634
635
// Patterns //
Original file line number Diff line number Diff line change @@ -1788,6 +1788,8 @@ pub struct TypeBound {
1788
1788
pub ( crate ) syntax : SyntaxNode ,
1789
1789
}
1790
1790
impl TypeBound {
1791
+ #[ inline]
1792
+ pub fn generic_param_list ( & self ) -> Option < GenericParamList > { support:: child ( & self . syntax ) }
1791
1793
#[ inline]
1792
1794
pub fn lifetime ( & self ) -> Option < Lifetime > { support:: child ( & self . syntax ) }
1793
1795
#[ inline]
@@ -1799,6 +1801,8 @@ impl TypeBound {
1799
1801
#[ inline]
1800
1802
pub fn const_token ( & self ) -> Option < SyntaxToken > { support:: token ( & self . syntax , T ! [ const ] ) }
1801
1803
#[ inline]
1804
+ pub fn use_token ( & self ) -> Option < SyntaxToken > { support:: token ( & self . syntax , T ! [ use ] ) }
1805
+ #[ inline]
1802
1806
pub fn tilde_token ( & self ) -> Option < SyntaxToken > { support:: token ( & self . syntax , T ! [ ~] ) }
1803
1807
}
1804
1808
You can’t perform that action at this time.
0 commit comments