mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Change ids strategy
this is a part of larghish hir refactoring which aims to * replace per-source-root module trees with per crate trees * switch from a monotyped DedId to type-specific ids
This commit is contained in:
parent
cfb085ded8
commit
3ab1519cb2
26 changed files with 365 additions and 430 deletions
|
@ -64,9 +64,9 @@ fn get_def_id(
|
|||
..same_file_loc.source_item_id
|
||||
};
|
||||
let loc = DefLoc {
|
||||
module: same_file_loc.module,
|
||||
kind: expected_kind,
|
||||
source_item_id,
|
||||
..*same_file_loc
|
||||
};
|
||||
loc.id(db)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue