diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-05-15 16:32:54 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-05-15 16:32:54 +0100 |
commit | 92abc56bc928fb2a11b8f5b2a37e3c9ee31102d7 (patch) | |
tree | f3244e2c4816abe349c0fbbf66ca469a03532a3a /crates/syntax/src/parsing/text_tree_sink.rs | |
parent | 87ef340c19ae5ac73fc9b1cd37909d9d8ad53d09 (diff) | |
parent | 4b5b54279ad74316837bcdc7daa195d82bd13d3a (diff) |
Merge #8848
8848: Attach comments to ast::Impl r=Veykril a=Veykril
bors r+
Fixes #8847
Co-authored-by: Lukas Wirth <[email protected]>
Diffstat (limited to 'crates/syntax/src/parsing/text_tree_sink.rs')
-rw-r--r-- | crates/syntax/src/parsing/text_tree_sink.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/syntax/src/parsing/text_tree_sink.rs b/crates/syntax/src/parsing/text_tree_sink.rs index 1934204ea..d63ec080b 100644 --- a/crates/syntax/src/parsing/text_tree_sink.rs +++ b/crates/syntax/src/parsing/text_tree_sink.rs | |||
@@ -147,8 +147,8 @@ fn n_attached_trivias<'a>( | |||
147 | trivias: impl Iterator<Item = (SyntaxKind, &'a str)>, | 147 | trivias: impl Iterator<Item = (SyntaxKind, &'a str)>, |
148 | ) -> usize { | 148 | ) -> usize { |
149 | match kind { | 149 | match kind { |
150 | MACRO_CALL | MACRO_RULES | MACRO_DEF | CONST | TYPE_ALIAS | STRUCT | UNION | ENUM | 150 | CONST | ENUM | FN | IMPL | MACRO_CALL | MACRO_DEF | MACRO_RULES | MODULE | RECORD_FIELD |
151 | | VARIANT | FN | TRAIT | MODULE | RECORD_FIELD | STATIC | USE => { | 151 | | STATIC | STRUCT | TRAIT | TUPLE_FIELD | TYPE_ALIAS | UNION | USE | VARIANT => { |
152 | let mut res = 0; | 152 | let mut res = 0; |
153 | let mut trivias = trivias.enumerate().peekable(); | 153 | let mut trivias = trivias.enumerate().peekable(); |
154 | 154 | ||