mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
ra_syntax: followup fix for making SyntaxError::range() to return by value
This commit is contained in:
parent
e00922d113
commit
b510e77fbe
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ fn merge_errors(
|
|||
let mut res = Vec::new();
|
||||
|
||||
for old_err in old_errors {
|
||||
let old_err_range = *old_err.range();
|
||||
let old_err_range = old_err.range();
|
||||
// FIXME: make sure that .start() was here previously by a mistake
|
||||
if old_err_range.end() <= range_before_reparse.start() {
|
||||
res.push(old_err);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue