diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_hir/src/semantics.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/crates/ra_hir/src/semantics.rs b/crates/ra_hir/src/semantics.rs index 96bc791eb..0b40bf9af 100644 --- a/crates/ra_hir/src/semantics.rs +++ b/crates/ra_hir/src/semantics.rs | |||
@@ -345,7 +345,6 @@ pub fn original_range(db: &impl HirDatabase, node: InFile<&SyntaxNode>) -> FileR | |||
345 | return FileRange { file_id: original_file, range: range.value }; | 345 | return FileRange { file_id: original_file, range: range.value }; |
346 | } | 346 | } |
347 | 347 | ||
348 | // Fail to mapping up more, return the original file range instead | ||
349 | if range.file_id != elem.file_id { | 348 | if range.file_id != elem.file_id { |
350 | if let Some(root) = db.parse_or_expand(range.file_id) { | 349 | if let Some(root) = db.parse_or_expand(range.file_id) { |
351 | elem = range.with_value(find_covering_element(&root, range.value)); | 350 | elem = range.with_value(find_covering_element(&root, range.value)); |