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:
Aleksey Kladov 2019-01-23 23:14:13 +03:00
parent cfb085ded8
commit 3ab1519cb2
26 changed files with 365 additions and 430 deletions

View file

@ -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)
}