aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVeetaha <[email protected]>2020-02-10 00:10:56 +0000
committerVeetaha <[email protected]>2020-02-17 20:24:38 +0000
commitb510e77fbeca7d4691ddfdbb540d0975bdeef4b3 (patch)
tree6ca37e91fddf61680e53230397dd74cc70848d20
parente00922d113e5f998893419dedae511043890f9fa (diff)
ra_syntax: followup fix for making SyntaxError::range() to return by value
-rw-r--r--crates/ra_syntax/src/parsing/reparsing.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/parsing/reparsing.rs b/crates/ra_syntax/src/parsing/reparsing.rs
index 4faeeab45..57453e220 100644
--- a/crates/ra_syntax/src/parsing/reparsing.rs
+++ b/crates/ra_syntax/src/parsing/reparsing.rs
@@ -168,7 +168,7 @@ fn merge_errors(
168 let mut res = Vec::new(); 168 let mut res = Vec::new();
169 169
170 for old_err in old_errors { 170 for old_err in old_errors {
171 let old_err_range = *old_err.range(); 171 let old_err_range = old_err.range();
172 // FIXME: make sure that .start() was here previously by a mistake 172 // FIXME: make sure that .start() was here previously by a mistake
173 if old_err_range.end() <= range_before_reparse.start() { 173 if old_err_range.end() <= range_before_reparse.start() {
174 res.push(old_err); 174 res.push(old_err);