Index Modules using their LocalDefId.

This commit is contained in:
Camille GILLOT 2021-01-31 17:58:57 +01:00
parent 7878fa70d6
commit ff14cac621
10 changed files with 27 additions and 38 deletions

View file

@ -668,7 +668,7 @@ pub struct Crate<'hir> {
/// A list of modules written out in the order in which they
/// appear in the crate. This includes the main crate module.
pub modules: BTreeMap<HirId, ModuleItems>,
pub modules: BTreeMap<LocalDefId, ModuleItems>,
/// A list of proc macro HirIds, written out in the order in which
/// they are declared in the static array generated by proc_macro_harness.
pub proc_macros: Vec<HirId>,