diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-01-09 15:33:37 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-01-09 15:33:37 +0000 |
commit | c2bbfb9a5f614719c9805c7921653c8e4b85b1f1 (patch) | |
tree | a7d5f435cac7bdf2e8c24608e32588dc3ae42a11 /crates/ra_syntax/src/parsing | |
parent | cf5bdf464cad7ceb9a67e07985a3f4d3799ec0b6 (diff) | |
parent | 47785b0cd4f6ea759ffcf87af453962bcf5053f1 (diff) |
Merge #2778
2778: :arrow_up: rowan r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_syntax/src/parsing')
-rw-r--r-- | crates/ra_syntax/src/parsing/reparsing.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/parsing/reparsing.rs b/crates/ra_syntax/src/parsing/reparsing.rs index 65b8aa10d..06bdda11d 100644 --- a/crates/ra_syntax/src/parsing/reparsing.rs +++ b/crates/ra_syntax/src/parsing/reparsing.rs | |||
@@ -70,8 +70,7 @@ fn reparse_token<'node>( | |||
70 | } | 70 | } |
71 | } | 71 | } |
72 | 72 | ||
73 | let new_token = | 73 | let new_token = GreenToken::new(rowan::SyntaxKind(token.kind().into()), text.into()); |
74 | GreenToken::new(rowan::cursor::SyntaxKind(token.kind().into()), text.into()); | ||
75 | Some((token.replace_with(new_token), token.text_range())) | 74 | Some((token.replace_with(new_token), token.text_range())) |
76 | } | 75 | } |
77 | _ => None, | 76 | _ => None, |