diff options
Diffstat (limited to 'crates/ra_syntax/src/parsing/parser_impl.rs')
-rw-r--r-- | crates/ra_syntax/src/parsing/parser_impl.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/parsing/parser_impl.rs b/crates/ra_syntax/src/parsing/parser_impl.rs index 8cce1ab01..02baed76b 100644 --- a/crates/ra_syntax/src/parsing/parser_impl.rs +++ b/crates/ra_syntax/src/parsing/parser_impl.rs | |||
@@ -18,7 +18,7 @@ use crate::{ | |||
18 | 18 | ||
19 | use crate::SyntaxKind::{self, EOF, TOMBSTONE}; | 19 | use crate::SyntaxKind::{self, EOF, TOMBSTONE}; |
20 | 20 | ||
21 | pub(super) trait Sink { | 21 | pub(super) trait TreeSink { |
22 | type Tree; | 22 | type Tree; |
23 | 23 | ||
24 | /// Adds new leaf to the current branch. | 24 | /// Adds new leaf to the current branch. |
@@ -40,7 +40,7 @@ pub(super) trait Sink { | |||
40 | } | 40 | } |
41 | 41 | ||
42 | /// Parse a sequence of tokens into the representative node tree | 42 | /// Parse a sequence of tokens into the representative node tree |
43 | pub(super) fn parse_with<S: Sink>( | 43 | pub(super) fn parse_with<S: TreeSink>( |
44 | sink: S, | 44 | sink: S, |
45 | text: &str, | 45 | text: &str, |
46 | tokens: &[Token], | 46 | tokens: &[Token], |