aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax
diff options
context:
space:
mode:
authorVeetaha <[email protected]>2020-01-28 05:23:26 +0000
committerVeetaha <[email protected]>2020-02-03 22:00:55 +0000
commitc3117eea31392f8f63f1352a127f6b77139c375b (patch)
treea60c37dc1401bd02f6b4179176b418afc0890844 /crates/ra_syntax
parent58e01d875477234c132061e3072ac19f4dfb7a32 (diff)
ra_syntax: removed unnecessary init statement from reparsing tests
Diffstat (limited to 'crates/ra_syntax')
-rw-r--r--crates/ra_syntax/src/parsing/reparsing.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/crates/ra_syntax/src/parsing/reparsing.rs b/crates/ra_syntax/src/parsing/reparsing.rs
index 1f351e9fc..a86da0675 100644
--- a/crates/ra_syntax/src/parsing/reparsing.rs
+++ b/crates/ra_syntax/src/parsing/reparsing.rs
@@ -194,9 +194,6 @@ mod tests {
194 let fully_reparsed = SourceFile::parse(&after); 194 let fully_reparsed = SourceFile::parse(&after);
195 let incrementally_reparsed: Parse<SourceFile> = { 195 let incrementally_reparsed: Parse<SourceFile> = {
196 let f = SourceFile::parse(&before); 196 let f = SourceFile::parse(&before);
197 // FIXME: it seems this initialization statement is unnecessary (see edit in outer scope)
198 // Investigate whether it should really be removed.
199 let edit = AtomTextEdit { delete: range, insert: replace_with.to_string() };
200 let (green, new_errors, range) = 197 let (green, new_errors, range) =
201 incremental_reparse(f.tree().syntax(), &edit, f.errors.to_vec()).unwrap(); 198 incremental_reparse(f.tree().syntax(), &edit, f.errors.to_vec()).unwrap();
202 assert_eq!(range.len(), reparsed_len.into(), "reparsed fragment has wrong length"); 199 assert_eq!(range.len(), reparsed_len.into(), "reparsed fragment has wrong length");