mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Attach docs to statics
This commit is contained in:
parent
5451bfb9a1
commit
dcc0a9cd7e
2 changed files with 15 additions and 1 deletions
|
@ -147,7 +147,7 @@ fn n_attached_trivias<'a>(
|
|||
) -> usize {
|
||||
match kind {
|
||||
MACRO_CALL | CONST_DEF | TYPE_ALIAS_DEF | STRUCT_DEF | ENUM_DEF | ENUM_VARIANT | FN_DEF
|
||||
| TRAIT_DEF | MODULE | RECORD_FIELD_DEF => {
|
||||
| TRAIT_DEF | MODULE | RECORD_FIELD_DEF | STATIC_DEF => {
|
||||
let mut res = 0;
|
||||
for (i, (kind, text)) in trivias.enumerate() {
|
||||
match kind {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue