mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Enable parsing attributes for generic lifetimes and type parameters
This commit is contained in:
parent
a725dd4f7a
commit
58d14bcaf7
5 changed files with 85 additions and 9 deletions
|
@ -1716,6 +1716,7 @@ impl ToOwned for LifetimeParam {
|
|||
}
|
||||
|
||||
|
||||
impl ast::AttrsOwner for LifetimeParam {}
|
||||
impl LifetimeParam {
|
||||
pub fn lifetime(&self) -> Option<&Lifetime> {
|
||||
super::child_opt(self)
|
||||
|
@ -4076,6 +4077,7 @@ impl ToOwned for TypeParam {
|
|||
|
||||
|
||||
impl ast::NameOwner for TypeParam {}
|
||||
impl ast::AttrsOwner for TypeParam {}
|
||||
impl TypeParam {}
|
||||
|
||||
// TypeParamList
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue