Struct rustc::middle::ty::ctxtExperimental
[-]
[+]
[src]
pub struct ctxt<'tcx> {
pub sess: Session,
pub def_map: DefMap,
pub named_region_map: NamedRegionMap,
pub region_maps: RegionMaps,
pub node_types: RefCell<NodeMap<Ty<'tcx>>>,
pub item_substs: RefCell<NodeMap<ItemSubsts<'tcx>>>,
pub impl_or_trait_items: RefCell<DefIdMap<ImplOrTraitItem<'tcx>>>,
pub trait_item_def_ids: RefCell<DefIdMap<Rc<Vec<ImplOrTraitItemId>>>>,
pub trait_items_cache: RefCell<DefIdMap<Rc<Vec<ImplOrTraitItem<'tcx>>>>>,
pub impl_trait_cache: RefCell<DefIdMap<Option<Rc<TraitRef<'tcx>>>>>,
pub trait_refs: RefCell<NodeMap<Rc<TraitRef<'tcx>>>>,
pub trait_defs: RefCell<DefIdMap<Rc<TraitDef<'tcx>>>>,
pub object_cast_map: ObjectCastMap<'tcx>,
pub map: Map<'tcx>,
pub intrinsic_defs: RefCell<DefIdMap<Ty<'tcx>>>,
pub freevars: RefCell<FreevarMap>,
pub tcache: RefCell<DefIdMap<Polytype<'tcx>>>,
pub rcache: RefCell<FnvHashMap<creader_cache_key, Ty<'tcx>>>,
pub short_names_cache: RefCell<FnvHashMap<Ty<'tcx>, String>>,
pub needs_unwind_cleanup_cache: RefCell<FnvHashMap<Ty<'tcx>, bool>>,
pub tc_cache: RefCell<FnvHashMap<Ty<'tcx>, TypeContents>>,
pub ast_ty_to_ty_cache: RefCell<NodeMap<ast_ty_to_ty_cache_entry<'tcx>>>,
pub enum_var_cache: RefCell<DefIdMap<Rc<Vec<Rc<VariantInfo<'tcx>>>>>>,
pub ty_param_defs: RefCell<NodeMap<TypeParameterDef<'tcx>>>,
pub adjustments: RefCell<NodeMap<AutoAdjustment<'tcx>>>,
pub normalized_cache: RefCell<FnvHashMap<Ty<'tcx>, Ty<'tcx>>>,
pub lang_items: LanguageItems,
pub provided_method_sources: RefCell<DefIdMap<DefId>>,
pub struct_fields: RefCell<DefIdMap<Rc<Vec<field_ty>>>>,
pub item_variance_map: RefCell<DefIdMap<Rc<ItemVariances>>>,
pub variance_computed: Cell<bool>,
pub destructor_for_type: RefCell<DefIdMap<DefId>>,
pub destructors: RefCell<DefIdSet>,
pub trait_impls: RefCell<DefIdMap<Rc<RefCell<Vec<DefId>>>>>,
pub inherent_impls: RefCell<DefIdMap<Rc<Vec<DefId>>>>,
pub impl_items: RefCell<DefIdMap<Vec<ImplOrTraitItemId>>>,
pub used_unsafe: RefCell<NodeSet>,
pub used_mut_nodes: RefCell<NodeSet>,
pub populated_external_types: RefCell<DefIdSet>,
pub populated_external_traits: RefCell<DefIdSet>,
pub upvar_borrow_map: RefCell<UpvarBorrowMap>,
pub extern_const_statics: RefCell<DefIdMap<NodeId>>,
pub extern_const_variants: RefCell<DefIdMap<NodeId>>,
pub method_map: MethodMap<'tcx>,
pub dependency_formats: RefCell<Dependencies>,
pub unboxed_closures: RefCell<DefIdMap<UnboxedClosure<'tcx>>>,
pub node_lint_levels: RefCell<FnvHashMap<(NodeId, LintId), LevelSource>>,
pub transmute_restrictions: RefCell<Vec<TransmuteRestriction<'tcx>>>,
pub stability: RefCell<Index>,
pub capture_modes: RefCell<CaptureModeMap>,
pub associated_types: RefCell<DefIdMap<bool>>,
pub selection_cache: SelectionCache<'tcx>,
pub repr_hint_cache: RefCell<DefIdMap<Rc<Vec<ReprAttr>>>>,
// some fields omitted
}The data structure to keep track of all the information that typechecker generates so that so that it can be reused and doesn't have to be redone later on.