From dcc0a9cd7ed5521aa521920c4b67e149523beb7f Mon Sep 17 00:00:00 2001 From: kjeremy Date: Thu, 31 Oct 2019 16:21:46 -0400 Subject: Attach docs to statics --- crates/ra_syntax/src/parsing/text_tree_sink.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_syntax/src/parsing') diff --git a/crates/ra_syntax/src/parsing/text_tree_sink.rs b/crates/ra_syntax/src/parsing/text_tree_sink.rs index 142164316..c36756d6c 100644 --- a/crates/ra_syntax/src/parsing/text_tree_sink.rs +++ b/crates/ra_syntax/src/parsing/text_tree_sink.rs @@ -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 { -- cgit v1.2.3