[StableMIR] API to retrieve definitions from crates
Add functions to retrieve function definitions and static items from all crates (local and external). For external crates, add a query to retrieve the number of defs in a foreign crate.
This commit is contained in:
parent
f61306d47b
commit
0ce579f6f3
7 changed files with 225 additions and 4 deletions
|
@ -387,6 +387,7 @@ provide! { tcx, def_id, other, cdata,
|
|||
crate_hash => { cdata.root.header.hash }
|
||||
crate_host_hash => { cdata.host_hash }
|
||||
crate_name => { cdata.root.header.name }
|
||||
num_extern_def_ids => { cdata.num_def_ids() }
|
||||
|
||||
extra_filename => { cdata.root.extra_filename.clone() }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue