Crate rustc_hir

Source
Expand description

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

Re-exports§

Modules§

  • arena 🔒
  • For each definition, we track the following data. A definition here is defined somewhat circularly as “something with a DefId”, but it generally corresponds to things like structs, enums, etc. There are also some rather random cases (like const initializer expressions) that are mostly just leftovers.
  • hir 🔒
  • HIR walker for walking the contents of nodes.
  • Defines lang items.
  • target 🔒
    This module implements some validity checks for attributes. In particular it verifies that #[inline] and #[repr] attributes are attached to items that actually support them and if there are conflicts between multiple such attributes attached to the same item.
  • Validity checking for weak lang items

Macros§

  • This higher-order macro declares a list of types which can be allocated by Arena. Note that all Copy types can be allocated by default and need not be specified here.

Structs§

Enums§

Traits§

  • Requirements for a StableHashingContext to be used in this crate. This is a hack to allow using the HashStable_Generic derive macro instead of implementing everything in rustc_middle.