rustc_metadata::foreign_modules

Function collect

Source
pub(crate) fn collect(
    tcx: TyCtxt<'_>,
    LocalCrate: LocalCrate,
) -> FxIndexMap<DefId, ForeignModule>