mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Merge #8059
8059: Move doc-comment highlight injection from AST to HIR r=matklad,jonas-schievink a=Veykril Fixes #5016 Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
commit
0fbfab3b45
10 changed files with 206 additions and 28 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