Skip to main content

Module hir

Module hir 

Source
Expand description

HIR datatypes. See the rustc dev guide for more info.

Modules§

map
This module used to contain a type called Map. That type has since been eliminated, and all its methods are now on TyCtxt. But the module name stays as map because there isn’t an obviously better name for it.
nested_filter
place

Structs§

Crate
The top-level data structure that stores the entire contents of the crate currently being compiled.
Hashes
Hashes computed by TyCtxt::hash_owner_nodes if necessary.
ModuleItems
Gather the LocalDefId for each item-like within a module, including items contained within bodies. The Ids are in visitor order. This is used to partition a pass between modules.
ProjectedOwnerInfo
Unites some of OwnerInfo’s fields into same struct that is used by hir_owner query. AttributeMap is handled separately as placing it in this struct led to perf regressions: https://github.com/rust-lang/rust/pull/155678#issuecomment-4304597871. This struct is created mainly for uniting/splitting fields of OwnerInfo so they are stored/invalidated together in incremental compilation. For comments about each field see OwnerInfo struct.

Enums§

ProjectedMaybeOwner

Functions§

provide