mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +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
|
@ -64,7 +64,7 @@ fn def_with_body_from_child_node(
|
|||
) -> Option<DefWithBody> {
|
||||
let src = crate::ModuleSource::from_child_node(db, file_id, node);
|
||||
let module = Module::from_definition(db, crate::Source { file_id: file_id.into(), ast: src })?;
|
||||
let ctx = LocationCtx::new(db, module, file_id.into());
|
||||
let ctx = LocationCtx::new(db, module.id, file_id.into());
|
||||
|
||||
node.ancestors().find_map(|node| {
|
||||
if let Some(def) = ast::FnDef::cast(node.clone()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue