Skip to main content

Module map

Module map 

Source
Expand description

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.

Re-exportsΒ§

use rustc_abi::ExternAbi; πŸ”’
use rustc_ast::visit::VisitorResult; πŸ”’
use rustc_ast::visit::walk_list; πŸ”’
use rustc_attr_ir::Attribute; πŸ”’
use rustc_attr_ir::find_attr; πŸ”’
use rustc_data_structures::fingerprint::Fingerprint; πŸ”’
use rustc_data_structures::stable_hash::StableHash; πŸ”’
use rustc_data_structures::stable_hash::StableHasher; πŸ”’
use rustc_data_structures::steal::Steal; πŸ”’
use rustc_data_structures::svh::Svh; πŸ”’
use rustc_data_structures::sync::DynSend; πŸ”’
use rustc_data_structures::sync::DynSync; πŸ”’
use rustc_data_structures::sync::par_for_each_in; πŸ”’
use rustc_data_structures::sync::try_par_for_each_in; πŸ”’
use rustc_hir::def::DefKind; πŸ”’
use rustc_hir::def::Res; πŸ”’
use rustc_hir::def_id::DefId; πŸ”’
use rustc_hir::def_id::LocalDefId; πŸ”’
use rustc_hir::def_id::LocalModId; πŸ”’
use rustc_hir::definitions::DefKey; πŸ”’
use rustc_hir::definitions::DefPath; πŸ”’
use rustc_hir::definitions::DefPathHash; πŸ”’
use rustc_hir::intravisit::Visitor; πŸ”’
use rustc_hir::lints::DelayedLints; πŸ”’
use rustc_span::def_id::CRATE_MOD_ID; πŸ”’
use rustc_span::def_id::StableCrateId; πŸ”’
use rustc_span::ErrorGuaranteed; πŸ”’
use rustc_span::Ident; πŸ”’
use rustc_span::Span; πŸ”’
use rustc_span::Symbol; πŸ”’
use rustc_span::bug; πŸ”’
use rustc_span::kw; πŸ”’
use rustc_span::span_bug; πŸ”’
use rustc_span::with_metavar_spans; πŸ”’
use crate::hir::def_id::LOCAL_CRATE; πŸ”’
use crate::hir::ModuleItems; πŸ”’
use crate::hir::ProjectedMaybeOwner; πŸ”’
use crate::hir::nested_filter; πŸ”’
use crate::middle::debugger_visualizer::DebuggerVisualizerFile; πŸ”’
use crate::query::IntoQueryKey; πŸ”’
use crate::query::LocalCrate; πŸ”’
use crate::ty; πŸ”’
use crate::ty::TyCtxt; πŸ”’
use rustc_hir::*; πŸ”’

StructsΒ§

ItemCollector πŸ”’
ParentHirIterator πŸ”’
An iterator that walks up the ancestor tree of a given HirId. Constructed using tcx.hir_parent_iter(hir_id).
ParentOwnerIterator
An iterator that walks up the ancestor tree of a given HirId. Constructed using tcx.hir_parent_owner_iter(hir_id).

FunctionsΒ§

compute_hir_hash
Compute the new, metadata-oriented HIR hash for the full crate.
crate_hash πŸ”’
hir_crate_items πŸ”’
hir_module_items πŸ”’
legacy_crate_hash πŸ”’
Only reached when -Z metadata-crate-hash=no reverts to the pre-metadata-hashing behavior. The HIR-based hashing scheme here matches the crate_hash query as it existed before this PR. (The resulting SVH still differs from a pre-PR compiler, because metadata_crate_hash is a [TRACKED] option and therefore contributes to the dep-tracking hash hashed in below.)
upstream_crates πŸ”’