rustc_hir - Rust (original) (raw)

Expand description

pub use lang_items::[LangItem](lang%5Fitems/enum.LangItem.html "enum rustc_hir::lang_items::LangItem");

pub use lang_items::[LanguageItems](lang%5Fitems/struct.LanguageItems.html "struct rustc_hir::lang_items::LanguageItems");

pub use [hir](hir/index.html "mod rustc_hir::hir")::*;

pub use [hir_id](hir%5Fid/index.html "mod rustc_hir::hir_id")::*;

arena πŸ”’

def

def_id

def_path_hash_map

definitions

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.

diagnostic_items

hir πŸ”’

hir_id

intravisit

HIR walker for walking the contents of nodes.

lang_items

Defines lang items.

pat_util

stable_hash_impls πŸ”’

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.

weak_lang_items

Validity checking for weak lang items

arena_types

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.

Arena

MethodKind

Target

ArenaAllocatable

HashStableContext

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.