about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/metadata.rs
AgeCommit message (Collapse)AuthorLines
2023-04-18rustc_metadata: Remove `Span` from `ModChild`Vadim Petrochenkov-3/+0
It can be decoded on demand from regular `def_span` tables. Partially mitigates perf regressions from #109500.
2023-04-12resolve: Pre-compute non-reexport module childrenVadim Petrochenkov-2/+0
Instead of repeating the same logic by walking HIR during metadata encoding. The only difference is that we are no longer encoding `macro_rules` items, but we never currently need them as a part of this list. They can be encoded separately if this need ever arises. `module_reexports` is also un-querified, because I don't see any reasons to make it a query, only overhead.
2023-04-08resolve: Preserve reexport chains in `ModChild`renVadim Petrochenkov-1/+25
This may be potentially useful for - avoiding uses of `hir::ItemKind::Use` - preserving documentation comments on all reexports - preserving and checking stability/deprecation info on reexports - all kinds of diagnostics
2022-09-07rustc: Parameterize `ty::Visibility` over used IDVadim Petrochenkov-1/+2
It allows using `LocalDefId` instead of `DefId` when possible, and also encode cheaper `Visibility<DefIndex>` into metadata.
2022-02-24resolve/metadata: Stop encoding macros as reexportsVadim Petrochenkov-0/+2
2022-01-09rustc_middle: Rename `Export` to `ModChild` and add some commentsVadim Petrochenkov-0/+24
Also rename `module_exports`/`export_map` to `module_reexports`/`reexport_map` for clarity.