mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-19 10:00:27 +00:00
Use items can also have doc comments
This commit is contained in:
parent
a3043cf53f
commit
a1c8bdecfd
5 changed files with 23 additions and 23 deletions
|
@ -477,3 +477,4 @@ impl ast::DocCommentsOwner for ast::Const {}
|
|||
impl ast::DocCommentsOwner for ast::TypeAlias {}
|
||||
impl ast::DocCommentsOwner for ast::Impl {}
|
||||
impl ast::DocCommentsOwner for ast::MacroCall {}
|
||||
impl ast::DocCommentsOwner for ast::Use {}
|
||||
|
|
|
@ -148,7 +148,7 @@ fn n_attached_trivias<'a>(
|
|||
) -> usize {
|
||||
match kind {
|
||||
MACRO_CALL | CONST | TYPE_ALIAS | STRUCT | ENUM | VARIANT | FN | TRAIT | MODULE
|
||||
| RECORD_FIELD | STATIC => {
|
||||
| RECORD_FIELD | STATIC | USE => {
|
||||
let mut res = 0;
|
||||
let mut trivias = trivias.enumerate().peekable();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue