mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Replace trait object boxing with extra AttrsOwnerNode
This commit is contained in:
parent
11e9bc60a2
commit
acc6458390
2 changed files with 49 additions and 20 deletions
|
@ -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() }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue