diff options
author | Veetaha <[email protected]> | 2020-02-10 00:10:56 +0000 |
---|---|---|
committer | Veetaha <[email protected]> | 2020-02-17 20:24:38 +0000 |
commit | b510e77fbeca7d4691ddfdbb540d0975bdeef4b3 (patch) | |
tree | 6ca37e91fddf61680e53230397dd74cc70848d20 /crates/ra_syntax/src | |
parent | e00922d113e5f998893419dedae511043890f9fa (diff) |
ra_syntax: followup fix for making SyntaxError::range() to return by value
Diffstat (limited to 'crates/ra_syntax/src')
-rw-r--r-- | crates/ra_syntax/src/parsing/reparsing.rs | 2 |
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); |