Enable parsing attributes for generic lifetimes and type parameters

This commit is contained in:
Ville Penttinen 2019-02-17 22:19:21 +02:00
parent a725dd4f7a
commit 58d14bcaf7
5 changed files with 85 additions and 9 deletions

View file

@ -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