mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
introduce ra_hir_def
This commit is contained in:
parent
56bc874f1d
commit
a136cc0653
14 changed files with 139 additions and 100 deletions
|
@ -195,7 +195,7 @@ impl Module {
|
|||
.find_map(|krate| {
|
||||
let def_map = db.crate_def_map(krate);
|
||||
let module_id = def_map.find_module_by_source(src.file_id, decl_id)?;
|
||||
Some(Module { krate, module_id })
|
||||
Some(Module::new(krate, module_id))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue