Remove ImportSource::ExternCrate as the fixed point loop can't affect it

This commit is contained in:
Lukas Wirth 2024-10-05 13:42:46 +02:00
parent 5982d9c420
commit f7ca085690
4 changed files with 102 additions and 138 deletions

View file

@ -792,6 +792,7 @@ pub(crate) fn orig_range_with_focus_r(
.definition_range(db)
};
// FIXME: Also make use of the syntax context to determine which site we are at?
let value_range = InFile::new(hir_file, value).original_node_file_range_opt(db);
let ((call_site_range, call_site_focus), def_site) =
match InFile::new(hir_file, name).original_node_file_range_opt(db) {