mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
align lower module query names
This commit is contained in:
parent
fe5574b05a
commit
80bb7d86ec
7 changed files with 15 additions and 23 deletions
|
@ -47,7 +47,7 @@ impl Module {
|
|||
db: &impl HirDatabase,
|
||||
import: ImportId,
|
||||
) -> TreeArc<ast::PathSegment> {
|
||||
let source_map = db.lower_module_source_map(*self);
|
||||
let (_, source_map) = db.lower_module_with_source_map(*self);
|
||||
let (_, source) = self.definition_source(db);
|
||||
source_map.get(&source, import)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue