Replace trait object boxing with extra AttrsOwnerNode

This commit is contained in:
Lukas Wirth 2021-03-16 19:06:58 +01:00
parent 11e9bc60a2
commit acc6458390
2 changed files with 49 additions and 20 deletions

View file

@ -72,7 +72,7 @@ pub trait AttrsOwner: AstNode {
}
}
pub trait DocCommentsOwner: AstNode {
pub trait DocCommentsOwner: AttrsOwner {
fn doc_comments(&self) -> CommentIter {
CommentIter { iter: self.syntax().children_with_tokens() }
}