mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Move ids to hir_def crate
This commit is contained in:
parent
a136cc0653
commit
c9cd6aa370
18 changed files with 258 additions and 258 deletions
|
@ -208,6 +208,6 @@ where
|
|||
let module_src =
|
||||
crate::ModuleSource::from_child_node(db, src.file_id.original_file(db), &src.ast.syntax());
|
||||
let module = Module::from_definition(db, Source { file_id: src.file_id, ast: module_src })?;
|
||||
let ctx = LocationCtx::new(db, module, src.file_id);
|
||||
let ctx = LocationCtx::new(db, module.id, src.file_id);
|
||||
Some(DEF::from_ast(ctx, &src.ast))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue