mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Cleanup Crate API
This commit is contained in:
parent
ffcdd25cc8
commit
08d3166c8b
5 changed files with 42 additions and 32 deletions
|
@ -95,7 +95,7 @@ impl FromSource for MacroDef {
|
|||
|
||||
let module_src = ModuleSource::from_child_node(db, src.as_ref().map(|it| it.syntax()));
|
||||
let module = Module::from_definition(db, InFile::new(src.file_id, module_src))?;
|
||||
let krate = Some(module.krate().crate_id());
|
||||
let krate = Some(module.krate().id);
|
||||
|
||||
let ast_id = Some(AstId::new(src.file_id, db.ast_id_map(src.file_id).ast_id(&src.value)));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue