diff options
author | Lukas Wirth <[email protected]> | 2021-03-16 18:06:58 +0000 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2021-03-16 18:06:58 +0000 |
commit | acc6458390eb7ed5947fe8b6a0628b4a9018fad1 (patch) | |
tree | 038a673cd1e1dcd74ac7efed266c9419a38bd6c4 /crates/syntax | |
parent | 11e9bc60a2d9c22dbf51b7e1aa3d6e30a7006a35 (diff) |
Replace trait object boxing with extra AttrsOwnerNode
Diffstat (limited to 'crates/syntax')
-rw-r--r-- | crates/syntax/src/ast/traits.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/syntax/src/ast/traits.rs b/crates/syntax/src/ast/traits.rs index 13a769d51..96d4cc997 100644 --- a/crates/syntax/src/ast/traits.rs +++ b/crates/syntax/src/ast/traits.rs | |||
@@ -72,7 +72,7 @@ pub trait AttrsOwner: AstNode { | |||
72 | } | 72 | } |
73 | } | 73 | } |
74 | 74 | ||
75 | pub trait DocCommentsOwner: AstNode { | 75 | pub trait DocCommentsOwner: AttrsOwner { |
76 | fn doc_comments(&self) -> CommentIter { | 76 | fn doc_comments(&self) -> CommentIter { |
77 | CommentIter { iter: self.syntax().children_with_tokens() } | 77 | CommentIter { iter: self.syntax().children_with_tokens() } |
78 | } | 78 | } |