about summary refs log tree commit diff
path: root/compiler/rustc_metadata/src/foreign_modules.rs
AgeCommit message (Collapse)AuthorLines
2025-07-13Retire hir::ForeignItemRef.Camille GILLOT-1/+1
2025-02-17Move some `Map` methods onto `TyCtxt`.Nicholas Nethercote-2/+2
The end goal is to eliminate `Map` altogether. I added a `hir_` prefix to all of them, that seemed simplest. The exceptions are `module_items` which became `hir_module_free_items` because there was already a `hir_module_items`, and `items` which became `hir_free_items` for consistency with `hir_module_free_items`.
2023-07-17Do not fetch HIR in native_libs.Camille GILLOT-8/+5
2023-07-17Simplify foreign_modules.Camille GILLOT-3/+15
2022-10-29Rename some `OwnerId` fields.Nicholas Nethercote-3/+3
spastorino noticed some silly expressions like `item_id.def_id.def_id`. This commit renames several `def_id: OwnerId` fields as `owner_id`, so those expressions become `item_id.owner_id.def_id`. `item_id.owner_id.local_def_id` would be even clearer, but the use of `def_id` for values of type `LocalDefId` is *very* widespread, so I left that alone.
2022-05-20Remove `crate` visibility usage in compilerJacob Pratt-1/+1
2022-05-06use def_span and def_kind queries instead of calling tcx.hir() methodsMiguel Guarniz-1/+1
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-04-08remove ItemLikeVisitor impls in incremental, interface, metadata and ↵Miguel Guarniz-25/+8
symbol_mangling crates Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-04-08remove some uses of visit_all_item_likes in incremental, metadata and ↵Miguel Guarniz-3/+10
interface crates Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-02-19Adopt let else in more placesest31-3/+2
2021-12-14Remove `in_band_lifetimes` from `rustc_metadata`Sylvan Bowdler-1/+1
2021-10-03Move rustc_middle::middle::cstore to rustc_session.Camille GILLOT-1/+1
2021-09-29Avoid more invocations of hir_crate query.Camille GILLOT-1/+1
2021-02-15Only store a LocalDefId in hir::ForeignItem.Camille GILLOT-6/+4
2021-02-15Only store a LocalDefId in hir::Item.Camille GILLOT-4/+1
Items are guaranteed to be HIR owner.
2020-11-26Remove ForeignMod struct.Camille GILLOT-7/+4
2020-11-26Store ForeignItem in a side table.Camille GILLOT-2/+6
2020-08-30mv compiler to compiler/mark-0/+34